brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 84f6ff7 Raw
47 lines · plain
1# RUN: yaml2obj %s -o %t2# RUN: llvm-objcopy %t %t23# RUN: llvm-readobj --symbols %t2 | FileCheck %s4 5## Check that all values of the null symbol are zeroes.6 7# CHECK:      Symbols [8# CHECK-NEXT:  Symbol {9# CHECK-NEXT:    Name:  (0)10# CHECK-NEXT:    Value: 0x011# CHECK-NEXT:    Size: 012# CHECK-NEXT:    Binding: Local (0x0)13# CHECK-NEXT:    Type: None (0x0)14# CHECK-NEXT:    Other: 015# CHECK-NEXT:    Section: Undefined (0x0)16# CHECK-NEXT:  }17 18## Check we emit a zero in st_name field when a symbol has no name.19 20# CHECK:       Name: .text (0)21# CHECK-NEXT:   Value: 0x022# CHECK-NEXT:   Size: 023# CHECK-NEXT:   Binding: Local (0x0)24# CHECK-NEXT:   Type: Section (0x3)25# CHECK-NEXT:   Other: 026# CHECK-NEXT:   Section: .text (0x1)27# CHECK-NEXT: }28 29!ELF30FileHeader:31  Class:   ELFCLASS6432  Data:    ELFDATA2LSB33  Type:    ET_EXEC34  Machine: EM_X86_6435Sections:36  - Name:  .text37    Type:  SHT_PROGBITS38    Flags: [ SHF_ALLOC, SHF_EXECINSTR ]39Symbols:40  - Name:    ""41    Type:    STT_SECTION42    Section: .text43# We need to have a named symbol, otherwise the original44# issue that was fixed is not reproduced by this test.45  - Name:    foo46    Binding: STB_GLOBAL47