xref: /llvm-project/lld/test/ELF/linkerscript/unused-synthetic2.test (revision f0374e7db2dd6effa9d38894522e7fcc6ebe53ac)
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
10SECTIONS {
11  .trap : { *(.ARM.exidx) *(.dummy) }
12}
13