This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] DATA_SEGMENT_ALIGN documentation is not consistent with behaviour


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=fe6052e1eeffd4e2e2210cebc480b90094429a16

commit fe6052e1eeffd4e2e2210cebc480b90094429a16
Author: Alan Modra <amodra@gmail.com>
Date:   Thu Nov 5 00:33:55 2015 +1030

    DATA_SEGMENT_ALIGN documentation is not consistent with behaviour
    
    	PR ld/19203
    	* ld.texinfo (DATA_SEGMENT_ALIGN): Correct second expression.

Diff:
---
 ld/ChangeLog  | 5 +++++
 ld/ld.texinfo | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index 10bf820..3bce9c1 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -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.
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]