2018-02-07 17:41:14 +08:00
|
|
|
# REQUIRES: arm
|
2018-03-13 23:47:14 +08:00
|
|
|
# RUN: llvm-mc -filetype=obj -triple=armv7-unknown-linux-gnueabi /dev/null -o %t.o
|
2018-02-07 17:11:07 +08:00
|
|
|
|
|
|
|
## We incorrectly removed unused synthetic sections and crashed before.
|
|
|
|
## Check we do not crash and do not produce .trap output section.
|
2018-03-13 23:47:14 +08:00
|
|
|
# RUN: ld.lld -shared -o %t.so --script %s %t.o
|
2020-03-16 08:47:44 +08:00
|
|
|
# RUN: llvm-objdump --section-headers %t.so | FileCheck %s
|
2018-02-07 17:11:07 +08:00
|
|
|
# CHECK-NOT: .trap
|
2018-03-13 23:47:14 +08:00
|
|
|
|
|
|
|
SECTIONS {
|
|
|
|
.trap : { *(.ARM.exidx) *(.dummy) }
|
|
|
|
}
|