1 # RUN: yaml2obj %s > %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
19 # CHECK: SectionHeaderCount: 4
22 # CHECK: SectionData (
23 # CHECK-NEXT: 0000: C3C3C3C3
25 # CHECK: Name: .strtab
26 # CHECK: Name: .shstrtab
28 #BAD-FORMAT: bad format for --rename-section: missing '='
29 #MULTIPLE-RENAMES: multiple renames of section '.foo'