brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · e113e7d Raw
34 lines · plain
1# RUN: yaml2obj %s -o %t2# RUN: llvm-objcopy --rename-section=.foo=.bar %t %t23# RUN: llvm-readobj --file-headers --sections --section-data %t2 | FileCheck %s4# RUN: not llvm-objcopy --rename-section=.foo.bar --rename-section=.foo=.other %t %t2 2>&1 | FileCheck %s --check-prefix=BAD-FORMAT5# RUN: not llvm-objcopy --rename-section=.foo=.bar --rename-section=.foo=.other %t %t2 2>&1 | FileCheck %s --check-prefix=MULTIPLE-RENAMES6 7## Section renames don't chain:8# RUN: llvm-objcopy --rename-section=.foo=.bar --rename-section=.bar=.baz %t %t39# RUN: cmp %t2 %t310 11!ELF12FileHeader:13  Class:           ELFCLASS6414  Data:            ELFDATA2LSB15  Type:            ET_REL16  Machine:         EM_X86_6417Sections:18  - Name:            .foo19    Type:            SHT_PROGBITS20    Flags:           [ SHF_ALLOC ]21    Content:        "c3c3c3c3"22 23# CHECK: SectionHeaderCount: 424 25# CHECK: Name: .bar26# CHECK: SectionData (27# CHECK-NEXT:   0000: C3C3C3C328# CHECK-NEXT: )29# CHECK: Name: .strtab30# CHECK: Name: .shstrtab31 32#BAD-FORMAT: bad format for --rename-section: missing '='33#MULTIPLE-RENAMES: multiple renames of section '.foo'34