summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/arm-exidx-discard.s
blob: 2a204a04cd1b68eee1bd9df44721c53054fb6f00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// REQUIRES: arm
// RUN: llvm-mc -filetype=obj -triple arm-gnu-linux-eabi -mcpu cortex-a7 -arm-add-build-attributes %s -o %t.o
// RUN: echo "ENTRY(__entrypoint) SECTIONS { . = 0x10000; .text : { *(.text .text.*) } /DISCARD/ : { *(.ARM.exidx*) *(.gnu.linkonce.armexidx.*) } }" > %t.script
// RUN: ld.lld -T %t.script %t.o -o %t.elf 2>&1
// RUN: llvm-readobj -sections %t.elf | FileCheck %s

.globl  __entrypoint
__entrypoint:
    bx  lr

// Check that .ARM.exidx/.gnu.linkonce.armexidx
// are correctly removed if they were added.
// CHECK-NOT: .ARM.exidx
// CHECK-NOT: .gnu.linkonce.armexidx.
OpenPOWER on IntegriCloud