blob: 8c536831ac0e00655ab27f22e96967ceb0cdfb86 [file] [log] [blame]
Rafael Espindolaa9263c82018-01-24 19:16:311// RUN: llvm-mc -filetype=obj -triple arm-gnu-linux-eabi -mcpu cortex-a7 -arm-add-build-attributes %s -o %t.o
2// RUN: echo "ENTRY(__entrypoint) SECTIONS { . = 0x10000; .text : { *(.text .text.*) } /DISCARD/ : { *(.ARM.exidx*) *(.gnu.linkonce.armexidx.*) } }" > %t.script
3// RUN: ld.lld -T %t.script %t.o -o %t.elf 2>&1
4// RUN: llvm-readobj -sections %t.elf | FileCheck %s
5// REQUIRES: arm
6
7.globl __entrypoint
8__entrypoint:
9 bx lr
10
11// Check that .ARM.exidx/.gnu.linkonce.armexidx
12// are correctly removed if they were added.
13// CHECK-NOT: .ARM.exidx
14// CHECK-NOT: .gnu.linkonce.armexidx.