brintos

brintos / llvm-project-archived public Read only

0
0
Text · 756 B · d55950d Raw
27 lines · plain
1# llvm-objcopy's --strip-sections removes the section headers. It should be2# possible to run the tool on the output after this operation. Performing any3# subsequent stripping operation, or copying the object, should produce4# identical output.5 6# RUN: yaml2obj %s -o %t.in7# RUN: llvm-objcopy %t.in %t.stripped --strip-sections8# RUN: llvm-objcopy %t.stripped %t.stripped2 --strip-sections9# RUN: llvm-objcopy %t.stripped2 %t.out10# RUN: cmp %t.stripped %t.stripped211# RUN: cmp %t.stripped %t.out12 13--- !ELF14FileHeader:15  Class:   ELFCLASS6416  Data:    ELFDATA2LSB17  Type:    ET_EXEC18  Machine: EM_X86_6419Sections:20  - Name: .text21    Type: SHT_PROGBITS22    Content: 'facefeed'23ProgramHeaders:24  - Type:     PT_LOAD25    FirstSec: .text26    LastSec:  .text27