blob: 623eba630ed37f0fb54b51a2591641aabda10a8c [file] [log] [blame]
// REQUIRES: arm
// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t
// RUN: ld.lld %t -o %t2
// RUN: llvm-readelf -s %t2 | FileCheck %s
/// Test that symbols which point to input .ARM.exidx sections are eliminated.
/// These symbols might be produced, for example, by GNU tools.
.syntax unified
bx lr
/// GNU as adds mapping symbols "$d" for .ARM.exidx sections it generates.
/// llvm-mc does not do that, so reproduce that manually.
.reloc 0, R_ARM_NONE, __aeabi_unwind_cpp_pr0
.long 0x80b0b0b0
.section .text.h,"ax"
.global __aeabi_unwind_cpp_pr0
bx lr