brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · f1f1996 Raw
56 lines · plain
1# RUN: yaml2obj %s -o %t2# RUN: llvm-objcopy -R .test %t %t23# RUN: llvm-readobj --file-headers --symbols %t2 | FileCheck %s4 5!ELF6FileHeader:7  Class:           ELFCLASS648  Data:            ELFDATA2LSB9  Type:            ET_REL10  Machine:         EM_X86_6411Sections:12  - Name:            .test13    Type:            SHT_PROGBITS14    Flags:           [ SHF_ALLOC ]15  - Name:            .test216    Type:            SHT_PROGBITS17    Flags:           [ SHF_ALLOC ]18Symbols:19  - Name:     test20    Type:     STT_FUNC21    Section:  .test22    Value:    0x100023    Size:     424    Binding:  STB_GLOBAL25  - Name:     test226    Type:     STT_FUNC27    Section:  .test228    Value:    0x100029    Size:     430    Binding:  STB_GLOBAL31 32# The sections counted here should be .test, .symtab, .strtab, and .shstrtab.33# The 5th section is the null section.34#CHECK: SectionHeaderCount: 535 36#CHECK: Symbols [37#CHECK-NEXT:  Symbol {38#CHECK-NEXT:    Name:39#CHECK-NEXT:    Value: 0x040#CHECK-NEXT:    Size: 041#CHECK-NEXT:    Binding: Local42#CHECK-NEXT:    Type: None43#CHECK-NEXT:    Other: 044#CHECK-NEXT:    Section: Undefined45#CHECK-NEXT:  }46#CHECK-NEXT:  Symbol {47#CHECK-NEXT:    Name: test248#CHECK-NEXT:    Value: 0x100049#CHECK-NEXT:    Size: 450#CHECK-NEXT:    Binding: Global51#CHECK-NEXT:    Type: Function52#CHECK-NEXT:    Other: 053#CHECK-NEXT:    Section: .test254#CHECK-NEXT:  }55#CHECK-NEXT:]56