This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
DATA_SEGMENT_ALIGN documentation is not consistent with behaviour
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Thu, 5 Nov 2015 00:47:50 +1030
- Subject: DATA_SEGMENT_ALIGN documentation is not consistent with behaviour
- Authentication-results: sourceware.org; auth=none
This has been incorrect in the docs since 2002.
PR ld/19203
* ld.texinfo (DATA_SEGMENT_ALIGN): Correct second expression.
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index c0da112..1dd7492 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -6108,7 +6108,8 @@ This is equivalent to either
@end smallexample
or
@smallexample
-(ALIGN(@var{maxpagesize}) + (. & (@var{maxpagesize} - @var{commonpagesize})))
+(ALIGN(@var{maxpagesize})
+ + ((. + @var{commonpagesize} - 1) & (@var{maxpagesize} - @var{commonpagesize})))
@end smallexample
@noindent
depending on whether the latter uses fewer @var{commonpagesize} sized pages
--
Alan Modra
Australia Development Lab, IBM