diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2014-02-02 17:12:17 -0500 |
---|---|---|
committer | Sandra Loosemore <sandra@gcc.gnu.org> | 2014-02-02 17:12:17 -0500 |
commit | 02b677311ecb1ef2e9a34ca03a20fb33121f82fa (patch) | |
tree | c7a1a0c542f0bd110a4df2f80e900ee4a68cacbe /libgcc/config/nios2 | |
parent | 1c50676a2038834136ff6569f96ed0bda2a9a09c (diff) | |
download | gcc-02b677311ecb1ef2e9a34ca03a20fb33121f82fa.zip gcc-02b677311ecb1ef2e9a34ca03a20fb33121f82fa.tar.gz gcc-02b677311ecb1ef2e9a34ca03a20fb33121f82fa.tar.bz2 |
nios2.md (load_got_register): Initialize GOT pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
gcc/
* config/nios2/nios2.md (load_got_register): Initialize GOT
pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
* config/nios2/nios2.c (nios2_function_profiler): Likewise.
libgcc/
* config/nios2/crti.S (_init): Initialize GOT pointer from
_gp_got instead of _GLOBAL_OFFSET_TABLE_.
From-SVN: r207409
Diffstat (limited to 'libgcc/config/nios2')
-rw-r--r-- | libgcc/config/nios2/crti.S | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libgcc/config/nios2/crti.S b/libgcc/config/nios2/crti.S index 528c8f3..9f5d523 100644 --- a/libgcc/config/nios2/crti.S +++ b/libgcc/config/nios2/crti.S @@ -56,8 +56,8 @@ _init: addi fp, sp, 8 #ifdef linux nextpc r22 -1: movhi r2, %hiadj(_GLOBAL_OFFSET_TABLE_ - 1b) - addi r2, r2, %lo(_GLOBAL_OFFSET_TABLE_ - 1b) +1: movhi r2, %hiadj(_gp_got - 1b) + addi r2, r2, %lo(_gp_got - 1b) add r22, r22, r2 #endif @@ -80,8 +80,8 @@ _fini: addi fp, sp, 8 #ifdef linux nextpc r22 -1: movhi r2, %hiadj(_GLOBAL_OFFSET_TABLE_ - 1b) - addi r2, r2, %lo(_GLOBAL_OFFSET_TABLE_ - 1b) +1: movhi r2, %hiadj(_gp_got - 1b) + addi r2, r2, %lo(_gp_got - 1b) add r22, r22, r2 #endif |