This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ld ALIGN


On Tue, Aug 13, 2002 at 11:37:09AM +0930, Alan Modra wrote:
> than the old ALIGN_N macro.  As a side benefit, ALIGN in ld scripts
> can now handle alignments to arbitrary boundaries.

I suppose I ought to fix the doco too.

ld/ChangeLog

+	* ld.texinfo (ALIGN): Remove power of 2 restriction.
 
Index: ld/ld.texinfo
===================================================================
RCS file: /cvs/src/src/ld/ld.texinfo,v
retrieving revision 1.72
diff -u -p -r1.72 ld.texinfo
--- ld/ld.texinfo	8 Aug 2002 03:50:17 -0000	1.72
+++ ld/ld.texinfo	13 Aug 2002 02:24:46 -0000
@@ -4158,12 +4158,7 @@ SECTIONS @{ @dots{}
 @cindex round up location counter
 @cindex align location counter
 Return the location counter (@code{.}) aligned to the next @var{exp}
-boundary.  @var{exp} must be an expression whose value is a power of
-two.  This is equivalent to
-@smallexample
-(. + @var{exp} - 1) & ~(@var{exp} - 1)
-@end smallexample
-
+boundary.
 @code{ALIGN} doesn't change the value of the location counter---it just
 does arithmetic on it.  Here is an example which aligns the output
 @code{.data} section to the next @code{0x2000} byte boundary after the

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]