mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 22:40:05 +00:00
Fix locating GOT for Thumb-2 PIE binaries.
* sysdeps/arm/elf/start.S (_start): Avoid dependency on PC pipeline offset.
This commit is contained in:
parent
afd09ae82a
commit
b5c2620bee
@ -1,3 +1,8 @@
|
||||
2009-10-22 Julian Brown <julian@codesourcery.com>
|
||||
|
||||
* sysdeps/arm/elf/start.S (_start): Avoid dependency on PC pipeline
|
||||
offset.
|
||||
|
||||
2009-10-03 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Define F_SETOWN_EX and
|
||||
|
@ -87,8 +87,8 @@ _start:
|
||||
|
||||
#ifdef SHARED
|
||||
ldr sl, .L_GOT
|
||||
.L_GOT_OFF:
|
||||
add sl, pc, sl
|
||||
adr a4, .L_GOT
|
||||
add sl, sl, a4
|
||||
|
||||
ldr ip, .L_GOT+4 /* __libc_csu_fini */
|
||||
ldr ip, [sl, ip]
|
||||
@ -125,7 +125,7 @@ _start:
|
||||
|
||||
#ifdef SHARED
|
||||
.L_GOT:
|
||||
.word _GLOBAL_OFFSET_TABLE_-(.L_GOT_OFF+8)
|
||||
.word _GLOBAL_OFFSET_TABLE_ - .L_GOT
|
||||
.word __libc_csu_fini(GOT)
|
||||
.word __libc_csu_init(GOT)
|
||||
.word main(GOT)
|
||||
|
Loading…
Reference in New Issue
Block a user