mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-26 13:49:56 +00:00

We use both -long-option and --long-option in tests. Switch to --long-option for consistency. In the "llvm-readelf" mode, -long-option is discouraged as it conflicts with grouped short options and it is not accepted by GNU readelf. While updating the tests, change llvm-readobj -s to llvm-readobj -S to reduce confusion ("s" is --section-headers in llvm-readobj but --symbols in llvm-readelf). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359649 91177308-0d34-0410-b5e6-96231b3b80d8
44 lines
992 B
YAML
44 lines
992 B
YAML
## Check we are able to set sh_info field for SHT_SYMTAB sections.
|
|
# RUN: yaml2obj %s -o %t
|
|
# RUN: llvm-readobj --sections %t | FileCheck %s
|
|
|
|
# CHECK: Name: .symtab
|
|
# CHECK-NEXT: Type: SHT_SYMTAB
|
|
# CHECK-NEXT: Flags [
|
|
# CHECK-NEXT: ]
|
|
# CHECK-NEXT: Address:
|
|
# CHECK-NEXT: Offset:
|
|
# CHECK-NEXT: Size:
|
|
# CHECK-NEXT: Link:
|
|
# CHECK-NEXT: Info: 42
|
|
# CHECK: Name: .dynsym
|
|
# CHECK-NEXT: Type: SHT_DYNSYM
|
|
# CHECK-NEXT: Flags [
|
|
# CHECK-NEXT: SHF_ALLOC
|
|
# CHECK-NEXT: ]
|
|
# CHECK-NEXT: Address:
|
|
# CHECK-NEXT: Offset:
|
|
# CHECK-NEXT: Size:
|
|
# CHECK-NEXT: Link:
|
|
# CHECK-NEXT: Info: 26
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_REL
|
|
Machine: EM_X86_64
|
|
Sections:
|
|
- Name: .symtab
|
|
Info: 42
|
|
Type: SHT_SYMTAB
|
|
- Name: .dynsym
|
|
Info: 26
|
|
Type: SHT_SYMTAB
|
|
Symbols:
|
|
- Name: foo
|
|
Binding: STB_GLOBAL
|
|
DynamicSymbols:
|
|
- Name: bar
|
|
Binding: STB_GLOBAL
|