Fix syntax error in AArch64 default linker scripts when invoked with -shared.
authorNick Clifton <nickc@redhat.com>
Tue, 12 Jun 2018 11:45:49 +0000 (12:45 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 12 Jun 2018 11:45:49 +0000 (12:45 +0100)
* emulparams/aarch64elf.sh (OTHER_BSS_END_SYMBOLS): Make the
definition of the __bss_end__ symbol conditional upon CREATE_SHLIB.

ld/ChangeLog
ld/emulparams/aarch64elf.sh

index 02b0563522dd80fd3706e780dbf66b2beca9e120..d8e6a3f4a28edb1f17e7a890b392214492daf169 100644 (file)
@@ -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.
index deea7b4610584c0cb549870b62a1a14ad5f0a5b8..4a5934272257c39873ceccd1cf044378b8675606 100644 (file)
@@ -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)) }'