1# RUN: yaml2obj %s -o %t 2# RUN: llvm-objcopy --rename-section=.foo=.bar %t %t2 3# RUN: llvm-readobj --file-headers --sections --section-data %t2 | FileCheck %s 4# RUN: not llvm-objcopy --rename-section=.foo.bar --rename-section=.foo=.other %t %t2 2>&1 | FileCheck %s --check-prefix=BAD-FORMAT 5# RUN: not llvm-objcopy --rename-section=.foo=.bar --rename-section=.foo=.other %t %t2 2>&1 | FileCheck %s --check-prefix=MULTIPLE-RENAMES 6 7!ELF 8FileHeader: 9 Class: ELFCLASS64 10 Data: ELFDATA2LSB 11 Type: ET_REL 12 Machine: EM_X86_64 13Sections: 14 - Name: .foo 15 Type: SHT_PROGBITS 16 Flags: [ SHF_ALLOC ] 17 Content: "c3c3c3c3" 18 19# CHECK: SectionHeaderCount: 4 20 21# CHECK: Name: .bar 22# CHECK: SectionData ( 23# CHECK-NEXT: 0000: C3C3C3C3 24# CHECK-NEXT: ) 25# CHECK: Name: .strtab 26# CHECK: Name: .shstrtab 27 28#BAD-FORMAT: bad format for --rename-section: missing '=' 29#MULTIPLE-RENAMES: multiple renames of section '.foo' 30