From 02b677311ecb1ef2e9a34ca03a20fb33121f82fa Mon Sep 17 00:00:00 2001 From: Sandra Loosemore Date: Sun, 2 Feb 2014 17:12:17 -0500 Subject: nios2.md (load_got_register): Initialize GOT pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_. 2014-02-02 Sandra Loosemore 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 --- libgcc/ChangeLog | 5 +++++ libgcc/config/nios2/crti.S | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'libgcc') diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 58a8cad..3186d06 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,8 @@ +2014-02-02 Sandra Loosemore + + * config/nios2/crti.S (_init): Initialize GOT pointer from + _gp_got instead of _GLOBAL_OFFSET_TABLE_. + 2014-02-02 Richard Sandiford * configure.ac: Check __mips64 when setting host_address. 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 -- cgit v1.1