[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / eh-frame-marker.s
blobb14806fc1080d0f60539348bb833872364682b31
1 // REQUIRES: x86
2 /// A symbol can be defined relative to an empty .eh_frame (__EH_FRAME_LIST__).
3 /// Symbols defined relative to a non-empty .eh_frame have unclear semantics.
4 /// Test we don't crash.
6 // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
7 // RUN: ld.lld --eh-frame-hdr %t.o -o %t.so -shared
8 // RUN: llvm-readobj --symbols -S %t.so | FileCheck %s
10 // CHECK: Name: .eh_frame_hdr
11 // CHECK: Name: .eh_frame
12 // CHECK-NEXT: Type: SHT_PROGBITS
13 // CHECK-NEXT: Flags [
14 // CHECK-NEXT: SHF_ALLOC
15 // CHECK-NEXT: ]
16 // CHECK-NEXT: Address: [[ADDR:.*]]
18 // CHECK: Name: foo
19 // CHECK-NEXT: Value: [[ADDR]]
21 .section .eh_frame,"a",@unwind
22 foo:
23 .long 0