]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/linkerscript/unused-synthetic2.test
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / ELF / linkerscript / unused-synthetic2.test
1 # REQUIRES: arm
2 # RUN: llvm-mc -filetype=obj -triple=armv7-unknown-linux-gnueabi /dev/null -o %t.o
3
4 ## We incorrectly removed unused synthetic sections and crashed before.
5 ## Check we do not crash and do not produce .trap output section.
6 # RUN: ld.lld -shared -o %t.so --script %s %t.o
7 # RUN: llvm-objdump -section-headers %t.so | FileCheck %s
8 # CHECK-NOT: .trap
9
10 SECTIONS {
11   .trap : { *(.ARM.exidx) *(.dummy) }
12 }