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
16 // CHECK-NEXT: Address: [[ADDR:.*]]
19 // CHECK-NEXT: Value: [[ADDR]]
21 .section .eh_frame,"a",@unwind