mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
7c445aa3c8
* elf32-i386.c (elf_i386_relocate_section): Fix movl foo@indntpoff, %eax IE->LE transition. ld/testsuite/ * ld-i386/i386.exp: Add tlsindntpoff test. * ld-i386/tlsindntpoff.s: New test. * ld-i386/tlsindntpoff.dd: New test.
20 lines
423 B
ArmAsm
20 lines
423 B
ArmAsm
/* Force .got aligned to 4K, so it very likely gets at 0x804a100
|
|
(0x60 bytes .tdata and 0xa0 bytes .dynamic) */
|
|
.data
|
|
.balign 4096
|
|
.section ".tdata", "awT", @progbits
|
|
.globl foo
|
|
foo: .long 27
|
|
|
|
/* Force .text aligned to 4K, so it very likely gets at 0x8049000. */
|
|
.text
|
|
.balign 4096
|
|
.globl _start
|
|
.type _start,@function
|
|
_start:
|
|
cmp %ebx, %eax
|
|
jae 1f
|
|
movl foo@indntpoff, %eax
|
|
movl %gs:(%eax), %eax
|
|
1: ret
|