brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 112eb26 Raw
33 lines · plain
1# RUN: yaml2obj %s -o %t2# RUN: llvm-objcopy --rename-section=.text=.text2 --rename-section=.data=.data2 --prefix-alloc-sections=.prefix %t %t23# RUN: llvm-readobj --sections %t2 | FileCheck %s4 5# .text/.rel.text and .data/.rela.data are the cases when the relocation section6# comes after/before its target section respectively. We handle them in different7# ways to perform both --rename-section and --prefix-alloc-sections in one pass.8 9!ELF10FileHeader:11  Class:           ELFCLASS6412  Data:            ELFDATA2LSB13  Type:            ET_REL14  Machine:         EM_X86_6415Sections:16  - Name:            .text17    Type:            SHT_PROGBITS18    Flags:           [ SHF_ALLOC ]19  - Name:            .rel.text20    Type:            SHT_REL21    Info:            .text22  - Name:            .rela.data23    Type:            SHT_RELA24    Info:            .data25  - Name:            .data26    Type:            SHT_PROGBITS27    Flags:           [ SHF_ALLOC ]28 29# CHECK: Name: .prefix.text230# CHECK: Name: .rel.prefix.text231# CHECK: Name: .rela.prefix.data232# CHECK: Name: .prefix.data233