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 10bf820..3bce9c1 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 c0da112..1dd7492 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