From d89c18895bfdbf092ff34fd7c593cdab4105b5cc Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 12 Jun 2018 12:45:49 +0100 Subject: [PATCH] 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. --- ld/ChangeLog | 5 +++++ ld/emulparams/aarch64elf.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 02b0563522d..d8e6a3f4a28 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2018-06-12 Nick Clifton + + * emulparams/aarch64elf.sh (OTHER_BSS_END_SYMBOLS): Make the + definition of the __bss_end__ symbol conditional upon CREATE_SHLIB. + 2018-06-11 Nick Clifton * po/es.po: Updated Spanish translation. diff --git a/ld/emulparams/aarch64elf.sh b/ld/emulparams/aarch64elf.sh index deea7b46105..4a593427225 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)) }' -- 2.30.2