brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 1e62855 Raw
33 lines · plain
1# RUN: yaml2obj %s -o %t2 3# RUN: llvm-objcopy --rename-section=.foo=.bar --set-section-alignment=.foo=16 --set-section-flags=.foo=alloc --set-section-type=.foo=5 %t %t.14# RUN: llvm-readobj -S %t.1 | FileCheck %s5 6# CHECK:      Name: .bar7# CHECK-NEXT: Type: SHT_HASH (0x5)8# CHECK-NEXT: Flags [9# CHECK-NEXT:   SHF_ALLOC10# CHECK-NEXT:   SHF_WRITE11# CHECK-NEXT: ]12# CHECK:      AddressAlignment:13# CHECK-SAME:   {{^}} 1614 15# RUN: not llvm-objcopy --rename-section=.foo=.bar --set-section-flags=.bar=alloc %t %t.2 2>&1 | \16# RUN:   FileCheck %s --check-prefix=SET-BAR117# SET-BAR1: --set-section-flags=.bar conflicts with --rename-section=.foo=.bar18 19# RUN: not llvm-objcopy --rename-section=.foo=.bar --set-section-type=.bar=1 %t %t.2 2>&1 | \20# RUN:   FileCheck %s --check-prefix=SET-BAR221# SET-BAR2: --set-section-type=.bar conflicts with --rename-section=.foo=.bar22 23!ELF24FileHeader:25  Class:           ELFCLASS6426  Data:            ELFDATA2LSB27  Type:            ET_REL28  Machine:         EM_X86_6429Sections:30  - Name:  .foo31    Type:  SHT_PROGBITS32    Flags: [ SHF_ALLOC ]33