brintos

brintos / llvm-project-archived public Read only

0
0
Text · 785 B · 9fdfc53 Raw
35 lines · yaml
1## Check we correctly set the sh_info field of .symtab section.2## A symbol table section's sh_info section header member holds3## the symbol table index for the first non-local symbol.4 5# RUN: yaml2obj --docnum=1 %s -o %t6# RUN: llvm-readobj --sections %t | FileCheck %s --check-prefix=ONE7# ONE: Name: .symtab8# ONE: Info: 29 10--- !ELF11FileHeader:12  Class: ELFCLASS6413  Data:  ELFDATA2LSB14  Type:  ET_DYN15Symbols:16  - Name: local17  - Name: global18    Binding: STB_GLOBAL19 20# RUN: yaml2obj --docnum=2 %s -o %t21# RUN: llvm-readobj --sections %t | FileCheck %s --check-prefix=TWO22# TWO: Name: .symtab23# TWO: Info: 324 25--- !ELF26FileHeader:27  Class: ELFCLASS6428  Data:  ELFDATA2LSB29  Type:  ET_DYN30Symbols:31  - Name:    local132  - Name:    local233  - Name:    global34    Binding: STB_GLOBAL35