1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/Object/objdump-sectionheaders.test
George Rimar 25d3a37aab [llvm\test\Object] - An initial step to cleanup the test cases.
This patch removes trivial-object-test.elf-i386,
trivial-object-test.elf-x86-64 and trivial-object-test2.elf-x86-64
precompiled objects from test/Object/Inputs folder.

I adjusted the existent test cases to use YAML instead.

Differential revision: https://reviews.llvm.org/D64206

llvm-svn: 365348
2019-07-08 16:53:39 +00:00

43 lines
1.3 KiB
Plaintext

# RUN: yaml2obj %s > %t.elf-x86-64
# RUN: llvm-objdump -h %t.elf-x86-64 | FileCheck %s
# To verify this, use readelf -S, not objdump -h. Binutils objdump filters the
# results in a way that we don't emulate.
# CHECK: Sections:
# CHECK: Idx Name Size VMA Type
# CHECK: 0 00000000 0000000000000000
# CHECK: 1 .text 00000026 0000000000000000 TEXT
# CHECK: 2 .rodata.str1.1 0000000d 0000000000000026 DATA
# CHECK: 3 .note.GNU-stack 00000000 0000000000000033
# CHECK: 4 .rela.text 00000000 0000000000000038
# CHECK: 5 .symtab 00000018 0000000000000000
# CHECK: 6 .strtab 00000001 0000000000000000
# CHECK: 7 .shstrtab 00000045 0000000000000000
--- !ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_X86_64
Sections:
- Name: .text
Type: SHT_PROGBITS
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
Size: 0x26
- Name: .rodata.str1.1
Type: SHT_PROGBITS
Flags: [ SHF_ALLOC, SHF_MERGE, SHF_STRINGS ]
Address: 0x0000000000000026
Size: 0xd
- Name: .note.GNU-stack
Type: SHT_PROGBITS
Address: 0x0000000000000033
- Name: .rela.text
Type: SHT_RELA
Address: 0x0000000000000038
Link: .symtab
Info: .text
Relocations: