Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/binutils/dist/ld/emulparams Provide an __eprol...



details:   https://anonhg.NetBSD.org/src/rev/4513201b93d5
branches:  trunk
changeset: 952821:4513201b93d5
user:      simonb <simonb%NetBSD.org@localhost>
date:      Fri Feb 19 03:42:02 2021 +0000

description:
Provide an __eprol symbol in TEXT_START_SYMBOLS.  MIPS overrides
TEXT_START_SYMBOLS so it misses out on the default definition of
this that does provide an __eprol symbol.  Fixes linking of profiled
binaries.

OK: christos@

diffstat:

 external/gpl3/binutils/dist/ld/emulparams/elf32bmip.sh         |  2 +-
 external/gpl3/binutils/dist/ld/emulparams/elf32bmipn32-defs.sh |  2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 53592813f3f1 -r 4513201b93d5 external/gpl3/binutils/dist/ld/emulparams/elf32bmip.sh
--- a/external/gpl3/binutils/dist/ld/emulparams/elf32bmip.sh    Fri Feb 19 03:28:53 2021 +0000
+++ b/external/gpl3/binutils/dist/ld/emulparams/elf32bmip.sh    Fri Feb 19 03:42:02 2021 +0000
@@ -56,7 +56,7 @@
   .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 -r 53592813f3f1 -r 4513201b93d5 external/gpl3/binutils/dist/ld/emulparams/elf32bmipn32-defs.sh
--- a/external/gpl3/binutils/dist/ld/emulparams/elf32bmipn32-defs.sh    Fri Feb 19 03:28:53 2021 +0000
+++ b/external/gpl3/binutils/dist/ld/emulparams/elf32bmipn32-defs.sh    Fri Feb 19 03:42:02 2021 +0000
@@ -78,7 +78,7 @@
 "
 
 # 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+)};"
 



Home | Main Index | Thread Index | Old Index