brintos

brintos / llvm-project-archived public Read only

0
0
Text · 997 B · c4c32c6 Raw
35 lines · plain
1# RUN: yaml2obj %s -o %t2# RUN: llvm-objcopy --keep-section=.test2 --only-section=.test %t %t23# RUN: llvm-objcopy -j .test --keep-section=.test2 %t %t34# RUN: llvm-readobj --file-headers --sections %t2 | FileCheck %s5# RUN: diff %t2 %t36# RUN: llvm-objcopy --regex --keep-section='^.test$'  --only-section='^.test[2-3]+$' %t %t47# RUN: llvm-readobj --file-headers --sections %t4 | FileCheck %s --check-prefix=REGEX8 9!ELF10FileHeader:11  Class:           ELFCLASS6412  Data:            ELFDATA2LSB13  Type:            ET_REL14  Machine:         EM_X86_6415Sections:16  - Name:            .test17    Type:            SHT_PROGBITS18  - Name:            .test219    Type:            SHT_PROGBITS20  - Name:            .test321    Type:            SHT_PROGBITS22 23# CHECK: SectionHeaderCount: 424 25# CHECK:     Name: .test26# CHECK:     Name: .test227# CHECK:     Name: .shstrtab28 29# REGEX: SectionHeaderCount: 530 31# REGEX:     Name: .test32# REGEX:     Name: .test233# REGEX:     Name: .test334# REGEX:     Name: .shstrtab35