[VectorCombine] foldInsExtVectorToShuffle - canonicalize new shuffle(undef,x) ->...
[llvm-project.git] / lld / test / ELF / linkerscript / arm-exidx-discard.s
blobbeffdfb3ffeafe18343c69beb4e0defb26dfb9f6
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
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.