brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.0 KiB · ce65026 Raw
125 lines · plain
1# RUN: yaml2obj %s -o %t2# RUN: cp %t %t13# RUN: llvm-objcopy --discard-all %t %t24# Verify that llvm-objcopy has not modified the input.5# RUN: cmp %t %t16# RUN: llvm-readobj --symbols %t2 | FileCheck %s7 8# RUN: llvm-objcopy -x %t %t39# Verify that llvm-objcopy has not modified the input.10# RUN: cmp %t %t111# RUN: cmp %t2 %t312 13# Verify that llvm-strip modifies the symbol table the same way.14 15# RUN: cp %t %t416# RUN: llvm-strip --discard-all %t417# RUN: cmp %t2 %t418 19# RUN: llvm-strip -x %t20# RUN: cmp %t2 %t21 22!ELF23FileHeader:24  Class:           ELFCLASS6425  Data:            ELFDATA2LSB26  Type:            ET_REL27  Machine:         EM_X86_6428Sections:29  - Name:            .text30    Type:            SHT_PROGBITS31    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]32    Address:         0x100033    AddressAlign:    0x000000000000001034    Size:            6435  - Name:            .rela.text36    Type:            SHT_RELA37    Link:            .symtab38    Info:            .text39    Relocations:40      - Offset: 041        Symbol: Referenced42        Type:   R_X86_64_PC3243Symbols:44  - Name:     Local45    Type:     STT_FUNC46    Section:  .text47    Value:    0x100048    Size:     849  - Name:     LocalSection50    Type:     STT_SECTION51    Section:  .text52  - Name:     LocalFile53    Type:     STT_FILE54  - Name:     Global55    Type:     STT_FUNC56    Size:     857    Section:  .text58    Value:    0x101059    Binding:  STB_GLOBAL60  - Name:     Referenced61    Section:  .text62  - Name:     Weak63    Type:     STT_FUNC64    Size:     865    Section:  .text66    Value:    0x100867    Binding:  STB_WEAK68 69#CHECK: Symbols [70#CHECK-NEXT:  Symbol {71#CHECK-NEXT:    Name:72#CHECK-NEXT:    Value: 0x073#CHECK-NEXT:    Size: 074#CHECK-NEXT:    Binding: Local75#CHECK-NEXT:    Type: None76#CHECK-NEXT:    Other: 077#CHECK-NEXT:    Section: Undefined78#CHECK-NEXT:  }79#CHECK-NEXT:  Symbol {80#CHECK-NEXT:    Name: LocalSection81#CHECK-NEXT:    Value: 0x082#CHECK-NEXT:    Size: 083#CHECK-NEXT:    Binding: Local84#CHECK-NEXT:    Type: Section85#CHECK-NEXT:    Other: 086#CHECK-NEXT:    Section: .text87#CHECK-NEXT:  }88#CHECK-NEXT:  Symbol {89#CHECK-NEXT:    Name: LocalFile90#CHECK-NEXT:    Value: 0x091#CHECK-NEXT:    Size: 092#CHECK-NEXT:    Binding: Local93#CHECK-NEXT:    Type: File94#CHECK-NEXT:    Other: 095#CHECK-NEXT:    Section: Undefined96#CHECK-NEXT:  }97#CHECK-NEXT:  Symbol {98#CHECK-NEXT:    Name: Referenced99#CHECK-NEXT:    Value: 0x0100#CHECK-NEXT:    Size: 0101#CHECK-NEXT:    Binding: Local102#CHECK-NEXT:    Type: None103#CHECK-NEXT:    Other: 0104#CHECK-NEXT:    Section: .text105#CHECK-NEXT:  }106#CHECK-NEXT:  Symbol {107#CHECK-NEXT:    Name: Global108#CHECK-NEXT:    Value: 0x1010109#CHECK-NEXT:    Size: 8110#CHECK-NEXT:    Binding: Global111#CHECK-NEXT:    Type: Function112#CHECK-NEXT:    Other: 0113#CHECK-NEXT:    Section: .text114#CHECK-NEXT:  }115#CHECK-NEXT:  Symbol {116#CHECK-NEXT:    Name: Weak117#CHECK-NEXT:    Value: 0x1008118#CHECK-NEXT:    Size: 8119#CHECK-NEXT:    Binding: Weak120#CHECK-NEXT:    Type: Function121#CHECK-NEXT:    Other: 0122#CHECK-NEXT:    Section: .text123#CHECK-NEXT:  }124#CHECK-NEXT:]125