13 lines · plain
1# REQUIRES: arm2# RUN: llvm-mc -filetype=obj -triple=armv7-unknown-linux-gnueabi /dev/null -o %t.o3 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.o7# RUN: llvm-objdump --section-headers %t.so | FileCheck %s8# CHECK-NOT: .trap9 10SECTIONS {11 .trap : { *(.ARM.exidx) *(.dummy) }12}13