summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/powerpc/brk.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/powerpc/brk.S')
-rw-r--r--libc/sysdeps/linux/powerpc/brk.S8
1 files changed, 3 insertions, 5 deletions
diff --git a/libc/sysdeps/linux/powerpc/brk.S b/libc/sysdeps/linux/powerpc/brk.S
index 2fd8e5518..95b4dfd0d 100644
--- a/libc/sysdeps/linux/powerpc/brk.S
+++ b/libc/sysdeps/linux/powerpc/brk.S
@@ -52,12 +52,12 @@ brk:
mflr r4
bl _GLOBAL_OFFSET_TABLE_@local-4
mflr r5
- lwz r5,__curbrk@got(r5)
+ lwz r5,HIDDEN_JUMPTARGET(__curbrk)@got(r5)
mtlr r4
stw r3,0(r5)
#else
- lis r4,__curbrk@ha
- stw r3,__curbrk@l(r4)
+ lis r4,HIDDEN_JUMPTARGET(__curbrk)@ha
+ stw r3,HIDDEN_JUMPTARGET(__curbrk)@l(r4)
#endif
cmplw r6,r3
addi r1,r1,16
@@ -70,6 +70,4 @@ brk:
.size brk,.-brk
libc_hidden_def(brk)
-/* won't help too much, HIDDEN_JUMPTARGET should be used here as well, now the reloc remains */
-libc_hidden_data_def(__curbrk)
#endif