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