zig/deps/lld/test/ELF/relocatable-eh-frame.s
Andrew Kelley 4794281d64 embed LLD 5.0.0
This is 48aaa9f66120f72b5d7e4a90b32fee40a3386ce9 from the
git monorepo.
2017-08-27 17:46:59 -04:00

20 lines
553 B
ArmAsm

# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
# RUN: ld.lld -r %t.o %t.o -o %t
# RUN: llvm-readobj -r %t | FileCheck %s
# RUN: ld.lld %t -o %t.so -shared
# RUN: llvm-objdump -h %t.so | FileCheck --check-prefix=DSO %s
# DSO: .eh_frame 00000030
# CHECK: Relocations [
# CHECK-NEXT: Section ({{.*}}) .rela.eh_frame {
# CHECK-NEXT: 0x20 R_X86_64_PC32 .foo 0x0
# CHECK-NEXT: 0x50 R_X86_64_NONE - 0x0
# CHECK-NEXT: }
# CHECK-NEXT: ]
.section .foo,"aG",@progbits,bar,comdat
.cfi_startproc
.cfi_endproc