DATA_SEGMENT_ALIGN documentation is not consistent with behaviour
authorAlan Modra <amodra@gmail.com>
Wed, 4 Nov 2015 14:03:55 +0000 (00:33 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 4 Nov 2015 14:15:23 +0000 (00:45 +1030)
PR ld/19203
* ld.texinfo (DATA_SEGMENT_ALIGN): Correct second expression.

ld/ChangeLog
ld/ld.texinfo

index 10bf820209c76bc1e99b6e9d23279d7ecfa8f2ae..3bce9c19f5e3cfc272c3865a5555f2ce29edf5cf 100644 (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.
index c0da112ef23c5ce9760ed2e407cf82d85a481017..1dd749249acbf8c97ce7ec4fad66d56efb9367cd 100644 (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