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:
Julian Brown 2009-10-22 19:22:35 +00:00 committed by Joseph Myers
parent afd09ae82a
commit b5c2620bee
2 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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)