mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-19 01:34:32 +00:00
4bf771b4e6
These records are mandatory for executables and are used by the loader. Reviewers: rafael CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D939 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183852 91177308-0d34-0410-b5e6-96231b3b80d8
152 lines
5.1 KiB
Plaintext
152 lines
5.1 KiB
Plaintext
RUN: llvm-readobj -h %p/Inputs/trivial.obj.coff-i386 \
|
|
RUN: | FileCheck %s -check-prefix COFF32
|
|
RUN: llvm-readobj -h %p/Inputs/trivial.obj.coff-x86-64 \
|
|
RUN: | FileCheck %s -check-prefix COFF64
|
|
RUN: llvm-readobj -h %p/Inputs/trivial.exe.coff-i386 \
|
|
RUN: | FileCheck %s -check-prefix PE32
|
|
RUN: llvm-readobj -h %p/Inputs/trivial.obj.elf-i386 \
|
|
RUN: | FileCheck %s -check-prefix ELF32
|
|
RUN: llvm-readobj -h %p/Inputs/trivial.obj.elf-x86-64 \
|
|
RUN: | FileCheck %s -check-prefix ELF64
|
|
|
|
COFF32: File: {{(.*[/\\])?}}trivial.obj.coff-i386
|
|
COFF32-NEXT: Format: COFF-i386
|
|
COFF32-NEXT: Arch: i386
|
|
COFF32-NEXT: AddressSize: 32bit
|
|
COFF32-NEXT: ImageFileHeader {
|
|
COFF32-NEXT: Machine: IMAGE_FILE_MACHINE_I386 (0x14C)
|
|
COFF32-NEXT: SectionCount: 2
|
|
COFF32-NEXT: TimeDateStamp: 2013-03-20 17:56:46 (0x5149F85E)
|
|
COFF32-NEXT: PointerToSymbolTable: 0xA5
|
|
COFF32-NEXT: SymbolCount: 7
|
|
COFF32-NEXT: OptionalHeaderSize: 0
|
|
COFF32-NEXT: Characteristics [ (0x0)
|
|
COFF32-NEXT: ]
|
|
COFF32-NEXT: }
|
|
|
|
COFF64: File: {{(.*[/\\])?}}trivial.obj.coff-x86-64
|
|
COFF64-NEXT: Format: COFF-x86-64
|
|
COFF64-NEXT: Arch: x86_64
|
|
COFF64-NEXT: AddressSize: 64bit
|
|
COFF64-NEXT: ImageFileHeader {
|
|
COFF64-NEXT: Machine: IMAGE_FILE_MACHINE_AMD64 (0x8664)
|
|
COFF64-NEXT: SectionCount: 2
|
|
COFF64-NEXT: TimeDateStamp: 2013-03-20 17:56:46 (0x5149F85E)
|
|
COFF64-NEXT: PointerToSymbolTable: 0xAB
|
|
COFF64-NEXT: SymbolCount: 7
|
|
COFF64-NEXT: OptionalHeaderSize: 0
|
|
COFF64-NEXT: Characteristics [ (0x0)
|
|
COFF64-NEXT: ]
|
|
COFF64-NEXT: }
|
|
|
|
ELF32: File: {{(.*[/\\])?}}trivial.obj.elf-i386
|
|
ELF32-NEXT: Format: ELF32-i386
|
|
ELF32-NEXT: Arch: i386
|
|
ELF32-NEXT: AddressSize: 32bit
|
|
ELF32-NEXT: LoadName:
|
|
ELF32-NEXT: ElfHeader {
|
|
ELF32-NEXT: Ident {
|
|
ELF32-NEXT: Magic: (7F 45 4C 46)
|
|
ELF32-NEXT: Class: 32-bit (0x1)
|
|
ELF32-NEXT: DataEncoding: LittleEndian (0x1)
|
|
ELF32-NEXT: FileVersion: 1
|
|
ELF32-NEXT: OS/ABI: GNU/Linux (0x3)
|
|
ELF32-NEXT: ABIVersion: 0
|
|
ELF32-NEXT: Unused: (00 00 00 00 00 00 00)
|
|
ELF32-NEXT: }
|
|
ELF32-NEXT: Type: Relocatable (0x1)
|
|
ELF32-NEXT: Machine: EM_386 (0x3)
|
|
ELF32-NEXT: Version: 1
|
|
ELF32-NEXT: Entry: 0x0
|
|
ELF32-NEXT: ProgramHeaderOffset: 0x0
|
|
ELF32-NEXT: SectionHeaderOffset: 0xC8
|
|
ELF32-NEXT: Flags [ (0x0)
|
|
ELF32-NEXT: ]
|
|
ELF32-NEXT: HeaderSize: 52
|
|
ELF32-NEXT: ProgramHeaderEntrySize: 0
|
|
ELF32-NEXT: ProgramHeaderCount: 0
|
|
ELF32-NEXT: SectionHeaderEntrySize: 40
|
|
ELF32-NEXT: SectionHeaderCount: 10
|
|
ELF32-NEXT: StringTableSectionIndex: 7
|
|
ELF32-NEXT: }
|
|
|
|
ELF64: File: {{(.*[/\\])?}}trivial.obj.elf-x86-64
|
|
ELF64-NEXT: Format: ELF64-x86-64
|
|
ELF64-NEXT: Arch: x86_64
|
|
ELF64-NEXT: AddressSize: 64bit
|
|
ELF64-NEXT: LoadName:
|
|
ELF64-NEXT: ElfHeader {
|
|
ELF64-NEXT: Ident {
|
|
ELF64-NEXT: Magic: (7F 45 4C 46)
|
|
ELF64-NEXT: Class: 64-bit (0x2)
|
|
ELF64-NEXT: DataEncoding: LittleEndian (0x1)
|
|
ELF64-NEXT: FileVersion: 1
|
|
ELF64-NEXT: OS/ABI: GNU/Linux (0x3)
|
|
ELF64-NEXT: ABIVersion: 0
|
|
ELF64-NEXT: Unused: (00 00 00 00 00 00 00)
|
|
ELF64-NEXT: }
|
|
ELF64-NEXT: Type: Relocatable (0x1)
|
|
ELF64-NEXT: Machine: EM_X86_64 (0x3E)
|
|
ELF64-NEXT: Version: 1
|
|
ELF64-NEXT: Entry: 0x0
|
|
ELF64-NEXT: ProgramHeaderOffset: 0x0
|
|
ELF64-NEXT: SectionHeaderOffset: 0xB8
|
|
ELF64-NEXT: Flags [ (0x0)
|
|
ELF64-NEXT: ]
|
|
ELF64-NEXT: HeaderSize: 64
|
|
ELF64-NEXT: ProgramHeaderEntrySize: 0
|
|
ELF64-NEXT: ProgramHeaderCount: 0
|
|
ELF64-NEXT: SectionHeaderEntrySize: 64
|
|
ELF64-NEXT: SectionHeaderCount: 10
|
|
ELF64-NEXT: StringTableSectionIndex: 7
|
|
ELF64-NEXT: }
|
|
|
|
PE32: File: {{(.*[/\\])?}}trivial.exe.coff-i386
|
|
PE32-NEXT: Format: COFF-i386
|
|
PE32-NEXT: Arch: i386
|
|
PE32-NEXT: AddressSize: 32bit
|
|
PE32-NEXT: ImageFileHeader {
|
|
PE32-NEXT: Machine: IMAGE_FILE_MACHINE_I386 (0x14C)
|
|
PE32-NEXT: SectionCount: 1
|
|
PE32-NEXT: TimeDateStamp: 2013-05-24 21:24:34 (0x519FDA92)
|
|
PE32-NEXT: PointerToSymbolTable: 0x0
|
|
PE32-NEXT: SymbolCount: 0
|
|
PE32-NEXT: OptionalHeaderSize: 224
|
|
PE32-NEXT: Characteristics [ (0x102)
|
|
PE32-NEXT: IMAGE_FILE_32BIT_MACHINE (0x100)
|
|
PE32-NEXT: IMAGE_FILE_EXECUTABLE_IMAGE (0x2)
|
|
PE32-NEXT: ]
|
|
PE32-NEXT: }
|
|
PE32-NEXT: ImageOptionalHeader {
|
|
PE32-NEXT: MajorLinkerVersion: 10
|
|
PE32-NEXT: MinorLinkerVersion: 0
|
|
PE32-NEXT: SizeOfCode: 512
|
|
PE32-NEXT: SizeOfInitializedData: 0
|
|
PE32-NEXT: SizeOfUninitializedData: 0
|
|
PE32-NEXT: AddressOfEntryPoint: 0x1000
|
|
PE32-NEXT: BaseOfCode: 0x1000
|
|
PE32-NEXT: BaseOfData: 0x2000
|
|
PE32-NEXT: ImageBase: 0x400000
|
|
PE32-NEXT: SectionAlignment: 4096
|
|
PE32-NEXT: FileAlignment: 512
|
|
PE32-NEXT: MajorOperatingSystemVersion: 5
|
|
PE32-NEXT: MinorOperatingSystemVersion: 1
|
|
PE32-NEXT: MajorImageVersion: 0
|
|
PE32-NEXT: MinorImageVersion: 0
|
|
PE32-NEXT: MajorSubsystemVersion: 5
|
|
PE32-NEXT: MinorSubsystemVersion: 1
|
|
PE32-NEXT: SizeOfImage: 8192
|
|
PE32-NEXT: SizeOfHeaders: 512
|
|
PE32-NEXT: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_GUI (0x2)
|
|
PE32-NEXT: Subsystem [ (0x8140)
|
|
PE32-NEXT: IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE (0x40)
|
|
PE32-NEXT: IMAGE_DLL_CHARACTERISTICS_NX_COMPAT (0x100)
|
|
PE32-NEXT: IMAGE_DLL_CHARACTERISTICS_TERMINAL_SERVER_AWARE (0x8000)
|
|
PE32-NEXT: ]
|
|
PE32-NEXT: SizeOfStackReserve: 1048576
|
|
PE32-NEXT: SizeOfStackCommit: 4096
|
|
PE32-NEXT: SizeOfHeapReserve: 1048576
|
|
PE32-NEXT: SizeOfHeapCommit: 4096
|
|
PE32-NEXT: NumberOfRvaAndSize: 16
|
|
PE32-NEXT: }
|