[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / arm-exidx-mapping-symbols.s
blob623eba630ed37f0fb54b51a2591641aabda10a8c
1 // REQUIRES: arm
2 // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t
3 // RUN: ld.lld %t -o %t2
4 // RUN: llvm-readelf -s %t2 | FileCheck %s
5 // CHECK-NOT: $d.exidx.foo
7 /// Test that symbols which point to input .ARM.exidx sections are eliminated.
8 /// These symbols might be produced, for example, by GNU tools.
10 .syntax unified
11 .section .text.foo,"axG",%progbits,foo,comdat
12 foo:
13 bx lr
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.foo
18 $d.exidx.foo:
19 .reloc 0, R_ARM_NONE, __aeabi_unwind_cpp_pr0
20 .long .text.foo(PREL31)
21 .long 0x80b0b0b0
23 .section .text.h,"ax"
24 .global __aeabi_unwind_cpp_pr0
25 __aeabi_unwind_cpp_pr0:
26 bx lr