diff options
Diffstat (limited to 'ld/testsuite/ld-x86-64/sframe-reloc-2b.s')
-rw-r--r-- | ld/testsuite/ld-x86-64/sframe-reloc-2b.s | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/sframe-reloc-2b.s b/ld/testsuite/ld-x86-64/sframe-reloc-2b.s new file mode 100644 index 0000000..9484636 --- /dev/null +++ b/ld/testsuite/ld-x86-64/sframe-reloc-2b.s @@ -0,0 +1,31 @@ + .section sect, "axG", @progbits, sectgroup, comdat + .cfi_startproc +# Test intention is that LSDA must be provided by the discarded FDE. +# DW_EH_PE_udata8 = 4 +# DW_EH_PE_udata4 = 3 + .ifdef ELF64 + .cfi_lsda 4, lsda + .else + .cfi_lsda 3, lsda + .endif + .skip 16 + .cfi_endproc + + .text + .globl foo + .type foo, @function +foo: + .cfi_startproc + pushq %rbp + .cfi_def_cfa_offset 16 + .cfi_offset 6, -16 + movq %rsp, %rbp + .cfi_def_cfa_register 6 + popq %rbp + .cfi_def_cfa 7, 8 + ret + .cfi_endproc + + .section .gcc_except_table, "a", @progbits +lsda: + .section .note.GNU-stack,"",@progbits |