[clang] Propagate -ftime-report to offload lto (#122143)
[llvm-project.git] / lld / test / ELF / linkerscript / arm-exidx-discard-all.s
blobce74b279e583efd7c8b39a95fdf74dfcead26ae5
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
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.
10 .section .text.1, "ax", %progbits
11 .global foo
12 .type foo, %function
13 .fnstart
14 foo:
15 bx lr
16 .cantunwind
17 .fnend
19 // CHECK-NOT: .ARM.exidx