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 { . = 0x10000; .text : { *(.text .text.*) } /DISCARD/ : { *(.ARM.exidx*) *(.gnu.linkonce.armexidx.*) } }" > %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.globl __entrypoint 8__entrypoint: 9.fnstart 10 bx lr 11 .save {r7, lr} 12 .setfp r7, sp, #0 13 .fnend 14// Check that .ARM.exidx/.gnu.linkonce.armexidx 15// are correctly removed if they were added. 16// CHECK-NOT: .ARM.exidx 17// CHECK-NOT: .gnu.linkonce.armexidx. 18