Commit | Line | Data |
---|---|---|
9a5c4b9e PB |
1 | #objdump: -dr |
2 | #name: TLS | |
3 | # This test is only valid on ELF based ports. | |
4 | #not-target: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* | |
5 | # This is the VxWorks variant of this file. | |
6 | #source: tls.s | |
7 | #not-skip: *-*-vxworks* | |
8 | ||
9 | # Test generation of TLS relocations | |
10 | ||
11 | .*: +file format .*arm.* | |
12 | ||
13 | Disassembly of section .text: | |
14 | ||
15 | 00+0 <main>: | |
16 | 0: e1a00000 nop \(mov r0,r0\) | |
17 | 4: e1a00000 nop \(mov r0,r0\) | |
18 | 8: e1a0f00e mov pc, lr | |
19 | c: 00000000 andeq r0, r0, r0 | |
20 | c: R_ARM_TLS_GD32 a | |
21 | # ??? The addend is appearing in both the RELA field and the | |
22 | # contents. Shouldn't it be just one? bfd_install_relocation | |
23 | # appears to write the addend into the contents unconditionally, | |
24 | # yet somehow this does not happen for the majority of relocations. | |
25 | 10: 00000004 andeq r0, r0, r4 | |
26 | 10: R_ARM_TLS_LDM32 b\+0x4 | |
27 | 14: 00000008 andeq r0, r0, r8 | |
28 | 14: R_ARM_TLS_IE32 c\+0x8 | |
29 | 18: 00000000 andeq r0, r0, r0 | |
30 | 18: R_ARM_TLS_LE32 d |