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 syntax error in AArch64 default linker scripts when invoked with -shared.


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

commit d89c18895bfdbf092ff34fd7c593cdab4105b5cc
Author: Nick Clifton <nickc@redhat.com>
Date:   Tue Jun 12 12:45:49 2018 +0100

    Fix syntax error in AArch64 default linker scripts when invoked with -shared.
    
    	* emulparams/aarch64elf.sh (OTHER_BSS_END_SYMBOLS): Make the
    	definition of the __bss_end__ symbol conditional upon CREATE_SHLIB.

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

diff --git a/ld/ChangeLog b/ld/ChangeLog
index 02b0563..d8e6a3f 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2018-06-12  Nick Clifton  <nickc@redhat.com>
+
+	* emulparams/aarch64elf.sh (OTHER_BSS_END_SYMBOLS): Make the
+	definition of the __bss_end__ symbol conditional upon CREATE_SHLIB.
+
 2018-06-11  Nick Clifton  <nickc@redhat.com>
 
 	* po/es.po: Updated Spanish translation.
diff --git a/ld/emulparams/aarch64elf.sh b/ld/emulparams/aarch64elf.sh
index deea7b4..4a59342 100644
--- a/ld/emulparams/aarch64elf.sh
+++ b/ld/emulparams/aarch64elf.sh
@@ -29,7 +29,7 @@ DATA_START_SYMBOLS="${CREATE_SHLIB+PROVIDE (}__data_start = .${CREATE_SHLIB+)};"
 NO_SMALL_DATA=yes
 
 OTHER_BSS_SYMBOLS="${CREATE_SHLIB+PROVIDE (}__bss_start__ = .${CREATE_SHLIB+)};"
-OTHER_BSS_END_SYMBOLS="${CREATE_SHLIB+PROVIDE (}_bss_end__ = .${CREATE_SHLIB+)}; __bss_end__ = .${CREATE_SHLIB+)};"
+OTHER_BSS_END_SYMBOLS="${CREATE_SHLIB+PROVIDE (}_bss_end__ = .${CREATE_SHLIB+)}; ${CREATE_SHLIB+PROVIDE (}__bss_end__ = .${CREATE_SHLIB+)};"
 OTHER_END_SYMBOLS="${CREATE_SHLIB+PROVIDE (}__end__ = .${CREATE_SHLIB+)};"
 
 OTHER_SECTIONS='.note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }'


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