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 | ||
74b92a5c NC |
15 | 00+0 <arm_fn>: |
16 | 0: e1a00000 nop \; \(mov r0, r0\) | |
17 | 0: R_ARM_TLS_DESCSEQ af | |
18 | 4: e59f0014 ldr r0, \[pc, \#20\] ; 20 <\.arm_pool\+0x10> | |
19 | 8: fa000000 blx 8 <ae\+0x8> | |
20 | 8: R_ARM_TLS_CALL ae | |
9a5c4b9e PB |
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. | |
74b92a5c NC |
25 | c: e1a00000 nop \; \(mov r0, r0\) |
26 | 00000010 <.arm_pool>: | |
27 | 10: 00000008 .word 0x00000008 | |
28 | 10: R_ARM_TLS_GD32 aa\+0x8 | |
29 | 14: 0000000c .word 0x0000000c | |
30 | 14: R_ARM_TLS_LDM32 ab\+0xc | |
31 | 18: 00000010 .word 0x00000010 | |
32 | #pass |