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 6 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 unified 11 .section .text.foo,"axG",%progbits,foo,comdat 12foo: 13 bx lr 14 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 22 23 .section .text.h,"ax" 24 .global __aeabi_unwind_cpp_pr0 25__aeabi_unwind_cpp_pr0: 26 bx lr 27