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.
11 .section .text.foo,"axG",%progbits,foo,comdat
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
19 .reloc 0, R_ARM_NONE, __aeabi_unwind_cpp_pr0
20 .long .text.foo(PREL31)
24 .global __aeabi_unwind_cpp_pr0
25 __aeabi_unwind_cpp_pr0
: