From: Alan Modra Date: Wed, 4 Nov 2015 14:03:55 +0000 (+1030) Subject: DATA_SEGMENT_ALIGN documentation is not consistent with behaviour X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fe6052e1eeffd4e2e2210cebc480b90094429a16;p=binutils-gdb.git DATA_SEGMENT_ALIGN documentation is not consistent with behaviour PR ld/19203 * ld.texinfo (DATA_SEGMENT_ALIGN): Correct second expression. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 10bf820209c..3bce9c19f5e 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2015-11-05 Alan Modra + + PR ld/19203 + * ld.texinfo (DATA_SEGMENT_ALIGN): Correct second expression. + 2015-10-30 Nick Clifton * po/zh_CN.po: Updated (simplified) Chinese translation. diff --git a/ld/ld.texinfo b/ld/ld.texinfo index c0da112ef23..1dd749249ac 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