1// REQUIRES: arm 2// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t 3// RUN: ld.lld --no-merge-exidx-entries %t --static -o %t2 4// RUN: llvm-readobj --symbols %t2 | FileCheck %s 5 6// Check that on ARM we don't get a multiply defined symbol for __tls_get_addr 7// and undefined symbols for references to __exidx_start and __exidx_end 8 .syntax unified 9.section .text 10 .global __tls_get_addr 11__tls_get_addr: 12 bx lr 13 14 .global _start 15 .global __exidx_start 16 .global __exidx_end 17_start: 18 .fnstart 19 bx lr 20 .word __exidx_start 21 .word __exidx_end 22 .cantunwind 23 .fnend 24 25// CHECK: Name: __exidx_end 26// CHECK-NEXT: Value: 0x100E4 27// CHECK-NEXT: Size: 0 28// CHECK-NEXT: Binding: Local 29// CHECK-NEXT: Type: None 30// CHECK-NEXT: Other [ 31// CHECK-NEXT: STV_HIDDEN 32// CHECK-NEXT: ] 33// CHECK-NEXT: Section: .ARM.exidx 34// CHECK: Name: __exidx_start 35// CHECK-NEXT: Value: 0x100D4 36// CHECK-NEXT: Size: 0 37// CHECK-NEXT: Binding: Local 38// CHECK-NEXT: Type: None 39// CHECK-NEXT: Other [ 40// CHECK-NEXT: STV_HIDDEN 41// CHECK-NEXT: ] 42// CHECK-NEXT: Section: .ARM.exidx 43// CHECK: Symbol { 44// CHECK-NEXT: Name: __tls_get_addr 45