aboutsummaryrefslogtreecommitdiff
path: root/lld/test/ELF/linkerscript/unused-synthetic2.test
blob: f2355b86786abf2722108106aa50b8a3a00a776a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# REQUIRES: arm
# RUN: llvm-mc -filetype=obj -triple=armv7-unknown-linux-gnueabi /dev/null -o %t.o

## We incorrectly removed unused synthetic sections and crashed before.
## Check we do not crash and do not produce .trap output section.
# RUN: ld.lld -shared -o %t.so --script %s %t.o
# RUN: llvm-objdump --section-headers %t.so | FileCheck %s
# CHECK-NOT: .trap

SECTIONS {
  .trap : { *(.ARM.exidx) *(.dummy) }
}