diff options
| author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-11-25 12:27:50 +0000 |
|---|---|---|
| committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-11-25 12:27:50 +0000 |
| commit | 581dac08e2efead9d3d7d176985fde53c7994834 (patch) | |
| tree | 263d9bf99cd728d214c3b9f026b4da7d8d3dab80 /libc/sysdeps/linux | |
| parent | 4c3fb592c07248c452a84883017ea06557dce6c2 (diff) | |
| download | uClibc-alpine-581dac08e2efead9d3d7d176985fde53c7994834.tar.bz2 uClibc-alpine-581dac08e2efead9d3d7d176985fde53c7994834.tar.xz | |
- Fix thumb2 PIE (Joseph S. Myers) (r24138 from trunk)
Diffstat (limited to 'libc/sysdeps/linux')
| -rw-r--r-- | libc/sysdeps/linux/arm/crt1.S | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/arm/crt1.S b/libc/sysdeps/linux/arm/crt1.S index 082348e39..18e3686fa 100644 --- a/libc/sysdeps/linux/arm/crt1.S +++ b/libc/sysdeps/linux/arm/crt1.S @@ -238,7 +238,11 @@ _start: #ifdef __PIC__ .L_GOT: +#ifdef __thumb__ + .word _GLOBAL_OFFSET_TABLE_-(.L_GOT_OFF+4) +#else /* __thumb2__ */ .word _GLOBAL_OFFSET_TABLE_-(.L_GOT_OFF+8) +#endif .word _fini(GOT) .word _init(GOT) .word main(GOT) |
