diff options
Diffstat (limited to 'ld/testsuite/ld-elf')
-rw-r--r-- | ld/testsuite/ld-elf/eh6.d | 17 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/eh6.s | 17 |
2 files changed, 34 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/eh6.d b/ld/testsuite/ld-elf/eh6.d new file mode 100644 index 0000000..7f4e47a --- /dev/null +++ b/ld/testsuite/ld-elf/eh6.d @@ -0,0 +1,17 @@ +#source: eh6.s +#ld: --gc-sections -shared +#readelf: -wf +#target: x86_64-*-linux-gnu i?86-*-linux-gnu + +The section .eh_frame contains: + +00000000 0000001[4c] 00000000 CIE + Version: 1 + Augmentation: "zPR" + Code alignment factor: 1 + Data alignment factor: .* + Return address column: .* + Augmentation data: 80 .* 1b + + DW_CFA_nop +#pass diff --git a/ld/testsuite/ld-elf/eh6.s b/ld/testsuite/ld-elf/eh6.s new file mode 100644 index 0000000..bdc7dd1 --- /dev/null +++ b/ld/testsuite/ld-elf/eh6.s @@ -0,0 +1,17 @@ + .section .text.foo, "ax", @progbits + .globl foo + .type foo, @function +foo: + .cfi_startproc simple + .cfi_personality 0x80, indirect_ptr + ret + .cfi_endproc + .size foo, . - foo + + .section .data.rel.ro, "a", @progbits +indirect_ptr: + .long my_personality_v0 + + .globl my_personality_v0 +my_personality_v0: + .long 0 |