Two operand ALIGN

Nathan Sidwell nathan@codesourcery.com
Fri Feb 20 13:53:00 GMT 2004


Hi,
I kept writing (<expr> + ${ALIGN} - 1) & (${ALIGN} - 1) in a linker script,
and thought a two operand ALIGN (expr, align) builtin might be useful. With
this, ALIGN (expr) and ALIGN (., expr) are equivalent.

Here it is, tested on i686-pc-linux-gnu, ok?

nathan
-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: align2.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20040220/75c4218c/attachment.ksh>


More information about the Binutils mailing list