[PATCH, nios2] Fix linker provided _gp symbol
Chung-Lin Tang
cltang@codesourcery.com
Fri May 9 12:57:00 GMT 2014
Hi Sandra,
As I mentioned earlier, here's a fix for the nios2-linux emulation to
make _gp/gp hidden, analogous to the same issue Maciej fixed earlier for
MIPS:
http://sourceware.org/ml/binutils/2012-08/msg00064.html
Okay for trunk and 2.24 branch?
Thanks,
Chung-Lin
2014-05-09 Chung-Lin Tang <cltang@codesourcery.com>
ld/
* emulparams/nios2linux.sh (OTHER_GOT_SYMBOLS):
Wrap _gp in HIDDEN(), and gp in PROVIDE_HIDDEN.
-------------- next part --------------
diff --git a/ld/emulparams/nios2linux.sh b/ld/emulparams/nios2linux.sh
index f215177..e654250 100644
--- a/ld/emulparams/nios2linux.sh
+++ b/ld/emulparams/nios2linux.sh
@@ -6,8 +6,8 @@ LITTLE_OUTPUT_FORMAT="elf32-littlenios2"
BIG_OUTPUT_FORMAT="elf32-bignios2"
TEXT_START_ADDR=0x2000
OTHER_GOT_SYMBOLS='
- _gp = ALIGN(16) + 0x7ff0;
- PROVIDE(gp = _gp);
+ HIDDEN (_gp = ALIGN(16) + 0x7ff0);
+ PROVIDE_HIDDEN (gp = _gp);
'
ARCH=nios2
MACHINE=
More information about the Binutils
mailing list