brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · c361a88 Raw
54 lines · plain
1## This test checks that both grouped and ungrouped options (-S -x and -Sx)2## produce exactly the same result given the same input.3 4# RUN: yaml2obj %s -o %t5# RUN: llvm-strip -S -x -o %t-strip-separated %t6# RUN: llvm-strip -Sx -o %t-strip-grouped %t7# RUN: cmp %t-strip-separated %t-strip-grouped8 9# RUN: llvm-objcopy -S -x %t %t-objcopy-separated10# RUN: llvm-objcopy -Sx %t %t-objcopy-grouped11# RUN: cmp %t-objcopy-separated %t-objcopy-grouped12 13!ELF14FileHeader:15  Class:           ELFCLASS6416  Data:            ELFDATA2LSB17  Type:            ET_REL18  Machine:         EM_X86_6419Sections:20  - Name:            .debugGlobal21    Type:            SHT_PROGBITS22    Content:         "00000000"23  - Name:            .text24    Type:            SHT_PROGBITS25    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]26    Address:         0x100027    AddressAlign:    0x000000000000001028    Size:            6429Symbols:30  - Name:     Local31    Type:     STT_FUNC32    Section:  .text33    Value:    0x100034    Size:     835  - Name:     LocalSection36    Type:     STT_SECTION37    Section:  .text38  - Name:     LocalFile39    Type:     STT_FILE40  - Name:     Global41    Type:     STT_FUNC42    Size:     843    Section:  .text44    Value:    0x101045    Binding:  STB_GLOBAL46  - Name:     Weak47    Type:     STT_FUNC48    Size:     849    Section:  .text50    Value:    0x100851  - Name:    debugGlobal52    Section: .debugGlobal53    Binding:  STB_GLOBAL54