Retro68/binutils/ld/testsuite/ld-x86-64/pr25416-5b.s
Wolfgang Thaller f485e125c4 binutils 2.39
2022-10-27 20:45:45 +02:00

53 lines
869 B
ArmAsm

.text
.p2align 4
.globl test1
.type test1, @function
test1:
.cfi_startproc
subl $8, %esp
.cfi_def_cfa_offset 16
lea foo@TLSDESC(%rip), %eax
call *foo@TLSCALL(%eax)
addl %fs:0, %eax
cmpl %edi, (%eax)
jne .L5
addl $8, %esp
.cfi_remember_state
.cfi_def_cfa_offset 8
ret
.L5:
.cfi_restore_state
call abort@PLT
.cfi_endproc
.size test1, .-test1
.p2align 4
.globl test2
.type test2, @function
test2:
.cfi_startproc
subl $8, %esp
.cfi_def_cfa_offset 16
lea bar@TLSDESC(%rip), %eax
call *bar@TLSCALL(%eax)
addl %fs:0, %eax
cmpl %edi, (%eax)
jne .L9
addl $8, %esp
.cfi_remember_state
.cfi_def_cfa_offset 8
ret
.L9:
.cfi_restore_state
call abort@PLT
.cfi_endproc
.size test2, .-test2
.section .tdata,"awT",@progbits
.align 4
.hidden foo
.globl foo
.type foo, @object
.size foo, 4
foo:
.long 30
.section .note.GNU-stack,"",@progbits