DATA_SEGMENT_ALIGN documentation is not consistent with behaviour

PR ld/19203
	* ld.texinfo (DATA_SEGMENT_ALIGN): Correct second expression.
This commit is contained in:
Alan Modra 2015-11-05 00:33:55 +10:30
parent 14cb1c0b38
commit fe6052e1ee
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2015-11-05 Alan Modra <amodra@gmail.com>
PR ld/19203
* ld.texinfo (DATA_SEGMENT_ALIGN): Correct second expression.
2015-10-30 Nick Clifton <nickc@redhat.com>
* po/zh_CN.po: Updated (simplified) Chinese translation.

View File

@ -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