]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/linkerscript/eh-frame.s
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / ELF / linkerscript / eh-frame.s
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3 # RUN: echo "SECTIONS { .eh_frame : { *(.eh_frame) } }" > %t.script
4 # RUN: ld.lld -o %t1 --script %t.script %t
5 # RUN: llvm-objdump -s -section=".eh_frame" %t1 | FileCheck %s
6
7 # CHECK: 0000 14000000 00000000 017a5200 01781001
8 # CHECK-NEXT: 0010 1b0c0708 90010000
9
10 .global _start
11 _start:
12  nop
13
14 .section .dah,"ax",@progbits
15 .cfi_startproc
16  nop
17 .cfi_endproc