mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
b2d3b0af04
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). llvm-svn: 359649
57 lines
1.1 KiB
Plaintext
57 lines
1.1 KiB
Plaintext
# RUN: yaml2obj -docnum=1 %s \
|
|
# RUN: | llvm-readobj --symbols - | FileCheck -check-prefix=DOC1 %s
|
|
# RUN: yaml2obj -docnum=2 %s \
|
|
# RUN: | llvm-readobj --symbols - | FileCheck -check-prefix=DOC2 %s
|
|
# RUN: not yaml2obj -docnum=3 %s 2>&1 \
|
|
# RUN: | FileCheck -check-prefix=DOC3 %s
|
|
|
|
# DOC1: Name: T1 (1)
|
|
# DOC2: Name: T2 (1)
|
|
# DOC3: yaml2obj: Cannot find the 3rd document
|
|
|
|
--- !ELF
|
|
FileHeader: !FileHeader
|
|
Class: ELFCLASS32
|
|
Data: ELFDATA2LSB
|
|
Type: ET_REL
|
|
Machine: EM_MIPS
|
|
Flags: [EF_MIPS_CPIC]
|
|
|
|
Sections:
|
|
- Name: .text
|
|
Type: SHT_PROGBITS
|
|
Content: "0000000000000000"
|
|
AddressAlign: 16
|
|
Flags: [SHF_EXECINSTR, SHF_ALLOC]
|
|
|
|
Symbols:
|
|
- Name: T1
|
|
Section: .text
|
|
Type: STT_FUNC
|
|
Value: 0x0
|
|
Size: 8
|
|
Binding: STB_GLOBAL
|
|
|
|
--- !ELF
|
|
FileHeader: !FileHeader
|
|
Class: ELFCLASS32
|
|
Data: ELFDATA2LSB
|
|
Type: ET_REL
|
|
Machine: EM_MIPS
|
|
|
|
Sections:
|
|
- Name: .text
|
|
Type: SHT_PROGBITS
|
|
Content: "00000000"
|
|
AddressAlign: 16
|
|
Flags: [SHF_EXECINSTR, SHF_ALLOC]
|
|
|
|
Symbols:
|
|
- Name: T2
|
|
Section: .text
|
|
Type: STT_FUNC
|
|
Value: 0x0
|
|
Size: 4
|
|
Binding: STB_GLOBAL
|
|
...
|