brintos

brintos / llvm-project-archived public Read only

0
0
Text · 600 B · ce74b27 Raw
20 lines · plain
1// REQUIRES: arm2// RUN: llvm-mc -filetype=obj -triple arm-gnu-linux-eabi -mcpu cortex-a7 -arm-add-build-attributes %s -o %t.o3// RUN: echo "ENTRY(__entrypoint) SECTIONS { /DISCARD/ : { *(.text.1) } }" > %t.script4// RUN: ld.lld -T %t.script %t.o -o %t.elf5// RUN: llvm-readobj --sections %t.elf | FileCheck %s6 7/// Test that when we /DISCARD/ all the input sections with associated8/// .ARM.exidx sections then we also discard all the .ARM.exidx sections.9 10 .section .text.1, "ax", %progbits11 .global foo12 .type foo, %function13 .fnstart14foo:15  bx lr16  .cantunwind17  .fnend18 19// CHECK-NOT: .ARM.exidx20