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
|
2018-07-03 03:17:03 +08:00
|
|
|
# RUN: ld.lld -o %t1 --eh-frame-hdr --script %t.script %t
|
2020-03-16 08:47:44 +08:00
|
|
|
# RUN: llvm-objdump -s --section=".eh_frame_hdr" %t1 | FileCheck %s
|
2016-08-31 15:43:50 +08:00
|
|
|
|
2018-05-08 09:19:16 +08:00
|
|
|
# CHECK: 011b033b 14000000 01000000 4d000000
|
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
|