diff --git a/external/gpl3/binutils/dist/ld/emulparams/elf32bmip.sh b/external/gpl3/binutils/dist/ld/emulparams/elf32bmip.sh index 992d45469fd4..0926d6697550 100644 --- a/external/gpl3/binutils/dist/ld/emulparams/elf32bmip.sh +++ b/external/gpl3/binutils/dist/ld/emulparams/elf32bmip.sh @@ -56,7 +56,7 @@ OTHER_SDATA_SECTIONS=" .lit8 ${RELOCATING-0} : { *(.lit8) } .lit4 ${RELOCATING-0} : { *(.lit4) } " -TEXT_START_SYMBOLS="${CREATE_SHLIB+PROVIDE (}_ftext = .${CREATE_SHLIB+)};" +TEXT_START_SYMBOLS="PROVIDE_HIDDEN (__eprol = .); ${CREATE_SHLIB+PROVIDE (}_ftext = .${CREATE_SHLIB+)};" DATA_START_SYMBOLS="${CREATE_SHLIB+PROVIDE (}_fdata = .${CREATE_SHLIB+)};" OTHER_BSS_SYMBOLS="${CREATE_SHLIB+PROVIDE (}_fbss = .${CREATE_SHLIB+)};" OTHER_SECTIONS=" diff --git a/external/gpl3/binutils/dist/ld/emulparams/elf32bmipn32-defs.sh b/external/gpl3/binutils/dist/ld/emulparams/elf32bmipn32-defs.sh index 365be559c3c0..ad03e96495f1 100644 --- a/external/gpl3/binutils/dist/ld/emulparams/elf32bmipn32-defs.sh +++ b/external/gpl3/binutils/dist/ld/emulparams/elf32bmipn32-defs.sh @@ -78,7 +78,7 @@ OTHER_SDATA_SECTIONS=" " # Magic symbols. -TEXT_START_SYMBOLS="${CREATE_SHLIB+PROVIDE (}_ftext = .${CREATE_SHLIB+)};" +TEXT_START_SYMBOLS="PROVIDE_HIDDEN (__eprol = .); ${CREATE_SHLIB+PROVIDE (}_ftext = .${CREATE_SHLIB+)};" DATA_START_SYMBOLS="${CREATE_SHLIB+PROVIDE (}_fdata = .${CREATE_SHLIB+)};" OTHER_BSS_SYMBOLS="${CREATE_SHLIB+PROVIDE (}_fbss = .${CREATE_SHLIB+)};"