1// REQUIRES: arm 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 6 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. 9 10 .section .text.1, "ax", %progbits 11 .global foo 12 .type foo, %function 13 .fnstart 14foo: 15 bx lr 16 .cantunwind 17 .fnend 18 19// CHECK-NOT: .ARM.exidx 20