27 lines · plain
1// REQUIRES: arm2// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t3// RUN: ld.lld %t -o %t24// RUN: llvm-readelf -s %t2 | FileCheck %s5// CHECK-NOT: $d.exidx.foo6 7/// Test that symbols which point to input .ARM.exidx sections are eliminated.8/// These symbols might be produced, for example, by GNU tools.9 10 .syntax unified11 .section .text.foo,"axG",%progbits,foo,comdat12foo:13 bx lr14 15/// GNU as adds mapping symbols "$d" for .ARM.exidx sections it generates.16/// llvm-mc does not do that, so reproduce that manually.17 .section .ARM.exidx.text.foo,"ao?",%0x70000001,.text.foo18$d.exidx.foo:19 .reloc 0, R_ARM_NONE, __aeabi_unwind_cpp_pr020 .long .text.foo(PREL31)21 .long 0x80b0b0b022 23 .section .text.h,"ax"24 .global __aeabi_unwind_cpp_pr025__aeabi_unwind_cpp_pr0:26 bx lr27