summaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorsandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4>2014-02-02 22:12:17 +0000
committersandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4>2014-02-02 22:12:17 +0000
commit1fa97c893417d40a68a59b8c4069cf6cef10799c (patch)
treec7a1a0c542f0bd110a4df2f80e900ee4a68cacbe /libgcc
parent1b8cb5ee613a5101f24cf3f31d894061166888fe (diff)
downloadgcc-1fa97c893417d40a68a59b8c4069cf6cef10799c.tar.gz
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_. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207409 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc')
-rw-r--r--libgcc/ChangeLog5
-rw-r--r--libgcc/config/nios2/crti.S8
2 files changed, 9 insertions, 4 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index 58a8cadee68..3186d069dec 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,8 @@
+2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
+
+ * config/nios2/crti.S (_init): Initialize GOT pointer from
+ _gp_got instead of _GLOBAL_OFFSET_TABLE_.
+
2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
* configure.ac: Check __mips64 when setting host_address.
diff --git a/libgcc/config/nios2/crti.S b/libgcc/config/nios2/crti.S
index 528c8f353ec..9f5d523092b 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