forked from OSchip/llvm-project
21 lines
541 B
ArmAsm
21 lines
541 B
ArmAsm
// REQUIRES: x86
|
|
// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
|
|
// RUN: ld.lld --eh-frame-hdr %t.o -o %t.so -shared
|
|
// RUN: llvm-readobj --symbols -S %t.so | FileCheck %s
|
|
// We used to crash on this.
|
|
|
|
// CHECK: Name: .eh_frame_hdr
|
|
// CHECK: Name: .eh_frame
|
|
// CHECK-NEXT: Type: SHT_PROGBITS
|
|
// CHECK-NEXT: Flags [
|
|
// CHECK-NEXT: SHF_ALLOC
|
|
// CHECK-NEXT: ]
|
|
// CHECK-NEXT: Address: [[ADDR:.*]]
|
|
|
|
// CHECK: Name: foo
|
|
// CHECK-NEXT: Value: [[ADDR]]
|
|
|
|
.section .eh_frame,"a",@unwind
|
|
foo:
|
|
.long 0
|