Commit | Line | Data |
---|---|---|
ba93b8ac DJ |
1 | #objdump: -dr |
2 | #name: TLS | |
9a5c4b9e PB |
3 | # This test is only valid on ELF based ports. |
4 | #not-target: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* | |
5 | # VxWorks needs a special variant of this file. | |
6 | #skip: *-*-vxworks* | |
ba93b8ac DJ |
7 | |
8 | # Test generation of TLS relocations | |
9 | ||
10 | .*: +file format .*arm.* | |
11 | ||
12 | Disassembly of section .text: | |
13 | ||
14 | 00+0 <main>: | |
15 | 0: e1a00000 nop \(mov r0,r0\) | |
16 | 4: e1a00000 nop \(mov r0,r0\) | |
17 | 8: e1a0f00e mov pc, lr | |
18 | c: 00000000 andeq r0, r0, r0 | |
19 | c: R_ARM_TLS_GD32 a | |
20 | 10: 00000004 andeq r0, r0, r4 | |
21 | 10: R_ARM_TLS_LDM32 b | |
22 | 14: 00000008 andeq r0, r0, r8 | |
23 | 14: R_ARM_TLS_IE32 c | |
24 | 18: 00000000 andeq r0, r0, r0 | |
25 | 18: R_ARM_TLS_LE32 d |