brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · faf0744 Raw
46 lines · plain
1# RUN: yaml2obj %s -o %t2# RUN: llvm-objcopy --prefix-alloc-sections=.prefix %t %t23# RUN: llvm-readobj --sections %t2 | FileCheck %s4 5## Show that an empty string is permitted as the argument to6## --prefix-alloc-sections.7# RUN: llvm-objcopy --prefix-alloc-sections= %t2 %t38# RUN: cmp %t2 %t39 10## Show that only the last prefix is applied.11# RUN: llvm-objcopy --prefix-alloc-sections=.bar --prefix-alloc-sections=.prefix %t %t412# RUN: cmp %t2 %t413 14!ELF15FileHeader:16  Class:           ELFCLASS6417  Data:            ELFDATA2LSB18  Type:            ET_REL19  Machine:         EM_X86_6420Sections:21  - Name:            .foo22    Type:            SHT_PROGBITS23    Flags:           [  ]24  - Name:            .prefix.already_prefixed25    Type:            SHT_PROGBITS26    Flags:           [ SHF_ALLOC ]27  - Name:            .text28    Type:            SHT_PROGBITS29    Flags:           [ SHF_ALLOC ]30  - Name:            .rel.text31    Type:            SHT_REL32    Info:            .text33  - Name:            .rela.data34    Type:            SHT_RELA35    Info:            .data36  - Name:            .data37    Type:            SHT_PROGBITS38    Flags:           [ SHF_ALLOC ]39 40# CHECK: Name: .foo41# CHECK: Name: .prefix.prefix.already_prefixed42# CHECK: Name: .prefix.text43# CHECK: Name: .rel.prefix.text44# CHECK: Name: .rela.prefix.data45# CHECK: Name: .prefix.data46