1# RUN: yaml2obj %s -o %t.o 2# RUN: yaml2obj %S/Inputs/shf-info-link.test -o %t2.o 3# RUN: ld.lld %t.o %t2.o -o %t3.o -r 4# RUN: llvm-readobj -S %t3.o | FileCheck %s 5 6# CHECK-NOT: Name: .rela.text 7# CHECK: Name: .rela.text 8# CHECK-NOT: Name: .rela.text 9 10 11--- !ELF 12FileHeader: 13 Class: ELFCLASS64 14 Data: ELFDATA2LSB 15 Type: ET_REL 16 Machine: EM_X86_64 17Sections: 18 - Name: .text 19 Type: SHT_PROGBITS 20 Flags: [ SHF_ALLOC, SHF_EXECINSTR ] 21 - Name: .rela.text 22 Type: SHT_RELA 23 Flags: [ SHF_INFO_LINK ] 24 Link: .symtab 25 Info: .text 26 Relocations: 27 - Symbol: foo 28 Type: R_X86_64_64 29Symbols: 30 - Name: foo 31 Binding: STB_GLOBAL 32