1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -sr -t | FileCheck %s
3 // When doing a rename, all the checks for where the relocation should go
4 // should be performed with the original symbol. Only if we decide to relocate
5 // with the symbol we should then use the renamed one.
7 // This is a regression test for a bug where we used bar5@@@zed when deciding
8 // if we should relocate with the symbol or with the section and we would then
9 // not produce a relocation with .text.
13 .symver defined3, bar5@@@zed
20 // CHECK: Name: .rela.text
21 // CHECK-NEXT: Type: SHT_RELA (0x4)
22 // CHECK-NEXT: Flags [ (0x0)
24 // CHECK-NEXT: Address: 0x0
25 // CHECK-NEXT: Offset:
26 // CHECK-NEXT: Size: 24
29 // CHECK-NEXT: AddressAlignment: 8
30 // CHECK-NEXT: EntrySize: 24
31 // CHECK-NEXT: Relocations [
32 // CHECK-NEXT: 0x0 R_X86_64_32 .text 0x0