2 // RUN
: llvm-mc
-filetype
=obj
-triple arm-gnu-linux-eabi
-mcpu cortex-a7
-arm-add-build-attributes
%s
-o
%t.o
3 // RUN
: echo
"ENTRY(__entrypoint) SECTIONS { /DISCARD/ : { *(.text.1) } }" > %t.script
4 // RUN
: ld.lld
-T %t.script
%t.o
-o
%t.elf
5 // RUN
: llvm-readobj
--sections
%t.elf | FileCheck
%s
7 /// Test that when we
/DISCARD
/ all the input sections with associated
8 /// .ARM.exidx sections then we also discard all the .ARM.exidx sections.
10 .section .text.1, "ax", %progbits
19 // CHECK-
NOT: .ARM.exidx