1 # RUN: yaml2obj %s > %t 2 # RUN: not llvm-objcopy -N foo %t %t2 2>&1 | FileCheck %s 3 4 !ELF 5 FileHeader: 6 Class: ELFCLASS64 7 Data: ELFDATA2LSB 8 Type: ET_REL 9 Machine: EM_X86_64 10 Sections: 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 24 Symbols: 25 Local: 26 - Name: foo 27 Type: STT_FUNC 28 Section: .text 29 Value: 0x1000 30 Size: 8 31 32 #CHECK: {{.*}}llvm-objcopy{{(\.EXE|\.exe)?}}: not stripping symbol `foo' because it is named in a relocation. 33