Files
clang-p2996/lld/test/ELF/linkerscript/pt_gnu_eh_frame.s
Eugene Leviant 30c1b436ad [ELF] Fix crash when .eh_frame(_hdr) is discarded
lld crashes when .eh_frame or .eh_frame_hdr section is discarded
in linker script and there is no PHDRS directive.

Differential revision: https://reviews.llvm.org/D30885

llvm-svn: 297712
2017-03-14 08:49:09 +00:00

14 lines
320 B
ArmAsm

# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
# RUN: echo "SECTIONS { /DISCARD/ : { *(.eh_frame*) *(.eh_frame_hdr*) } }" > %t.script
# RUN: ld.lld -o %t1 --eh-frame-hdr --script %t.script %t
.global _start
_start:
nop
.section .dah,"ax",@progbits
.cfi_startproc
nop
.cfi_endproc