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] Fix typo in desription of linker script symbols.


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

commit a5e406b5ada4fc7e5131dc4242b6cf46c6139a3f
Author: Nick Clifton <nickc@redhat.com>
Date:   Thu Sep 3 16:49:18 2015 +0100

    Fix typo in desription of linker script symbols.
    
    	(Source Code Reference): Fix off-by-one typo in example of how to
    	use linker script symbols in C source code.

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

diff --git a/ld/ChangeLog b/ld/ChangeLog
index d79c9e7..7c60d9b 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -3,6 +3,11 @@
 	* ld.texinfo (--build-id): Fix typo.  The COFF/PE build-id section
 	is called .buildid not .build-id.
 
+2015-09-03  Nick Clifton  <nickc@redhat.com>
+
+	(Source Code Reference): Fix off-by-one typo in example of how to
+	use linker script symbols in C source code.
+
 2015-08-19  Alan Modra  <amodra@gmail.com>
 
 	* emultempl/aix.em: Don't set link_info.pic.
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index 1c2c3f4..2c78a07 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -3853,7 +3853,7 @@ linker script contains these declarations:
 @smallexample
 @group
   start_of_ROM   = .ROM;
-  end_of_ROM     = .ROM + sizeof (.ROM) - 1;
+  end_of_ROM     = .ROM + sizeof (.ROM);
   start_of_FLASH = .FLASH;
 @end group
 @end smallexample


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