]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libgcc/config/nios2/crti.S
nios2.md (load_got_register): Initialize GOT pointer from _gp_got instead of _GLOBAL_...
[thirdparty/gcc.git] / libgcc / config / nios2 / crti.S
index 528c8f353ec9ea0d119e6dcdb434eb2521631f7a..9f5d523092b106a00d40bad8e9f94fd0f7d6a9f8 100644 (file)
@@ -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