2016-08-31 15:43:50 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
|
2018-03-01 12:21:42 +08:00
|
|
|
# RUN: echo "SECTIONS { .eh_frame_hdr : {} .eh_frame : {} }" > %t.script
|
2016-08-31 15:43:50 +08:00
|
|
|
# RUN: ld.lld -o %t1 --eh-frame-hdr --script %t.script %t
|
|
|
|
# RUN: llvm-objdump -s -section=".eh_frame_hdr" %t1 | FileCheck %s
|
|
|
|
|
2017-03-01 02:55:08 +08:00
|
|
|
# CHECK: 011b033b 14000000 01000000 49000000
|
2016-09-20 23:08:24 +08:00
|
|
|
# CHECK-NEXT: 30000000
|
2016-08-31 15:43:50 +08:00
|
|
|
|
|
|
|
.global _start
|
|
|
|
_start:
|
|
|
|
nop
|
|
|
|
|
|
|
|
.section .dah,"ax",@progbits
|
|
|
|
.cfi_startproc
|
|
|
|
nop
|
|
|
|
.cfi_endproc
|