[PR ld/25062] arm: sign extend the addend of R_ARM_TLS_GOTDESC
[deliverable/binutils-gdb.git] / ld / testsuite / ld-arm / tls-gdesc-neg.s
1 .text
2 .arm
3 .globl foo
4 .type foo, %function
5 foo:
6 ldr r0, 1f
7 b 2f
8 1:
9 @ Negative addend for R_ARM_TLS_GOTDESC.
10 .word tlsdata(tlsdesc) + (. - 2f + 0)
11 2:
12 blx tlsdata(tlscall)
13
14 .thumb
15 .globl bar
16 .type bar, %function
17 bar:
18 ldr r0, 1f
19 b 2f
20 1:
21 @ Negative addend for R_ARM_TLS_GOTDESC.
22 .word tlsdata(tlsdesc) + (. - 2f + 1)
23 2:
24 blx tlsdata(tlscall)
25
26 .section .tdata,"awT"
27 .global tlsdata
28 tlsdata:
29 .space 4
This page took 0.038438 seconds and 4 git commands to generate.