1# RUN: yaml2obj %s -o %t 2# RUN: not llvm-objcopy -N foo %t %t2 2>&1 | FileCheck %s 3 4!ELF 5FileHeader: 6 Class: ELFCLASS64 7 Data: ELFDATA2LSB 8 Type: ET_REL 9 Machine: EM_X86_64 10Sections: 11 - Name: .text 12 Type: SHT_PROGBITS 13 Flags: [ SHF_ALLOC, SHF_EXECINSTR ] 14 Address: 0x1000 15 AddressAlign: 0x0000000000000010 16 Size: 64 17 - Name: .rel.text 18 Type: SHT_REL 19 Info: .text 20 Relocations: 21 - Offset: 0x1000 22 Symbol: foo 23 Type: R_X86_64_PC32 24Symbols: 25 - Name: foo 26 Type: STT_FUNC 27 Section: .text 28 Value: 0x1000 29 Size: 8 30 31# CHECK: not stripping symbol 'foo' because it is named in a relocation 32