2017-05-02 23:45:31 +08:00
|
|
|
// REQUIRES: x86
|
|
|
|
// RUN: llvm-mc -filetype=obj -triple=amd64-unknown-openbsd %s -o %t.o
|
2020-02-20 13:27:13 +08:00
|
|
|
// RUN: echo '.section .eh_frame,"a",@unwind; .long 0' | \
|
|
|
|
// RUN: llvm-mc -filetype=obj -triple=amd64-unknown-openbsd - -o %t2.o
|
2017-05-02 23:45:31 +08:00
|
|
|
// RUN: ld.lld %t.o %t2.o -o %t
|
2019-05-01 13:49:01 +08:00
|
|
|
// RUN: llvm-readobj --sections %t | FileCheck %s
|
2017-05-02 23:45:31 +08:00
|
|
|
|
|
|
|
// CHECK: Name: .eh_frame
|
|
|
|
// CHECK-NEXT: Type: SHT_PROGBITS
|
|
|
|
// CHECK-NEXT: Flags [
|
|
|
|
// CHECK-NEXT: SHF_ALLOC
|
|
|
|
// CHECK-NEXT: ]
|
2022-03-29 06:55:46 +08:00
|
|
|
// CHECK-NEXT: Address:
|
2017-05-02 23:45:31 +08:00
|
|
|
// CHECK-NEXT: Offset: 0x120
|
|
|
|
// CHECK-NEXT: Size: 4
|
|
|
|
|
2020-02-20 13:27:13 +08:00
|
|
|
.section .eh_frame,"a",@unwind
|
2017-05-02 23:45:31 +08:00
|
|
|
__EH_FRAME_BEGIN__:
|