2013-05-22 02:53:50 +08:00
|
|
|
RUN: obj2yaml %p/Inputs/trivial-object-test.coff-i386 | FileCheck %s --check-prefix COFF-I386
|
|
|
|
RUN: obj2yaml %p/Inputs/trivial-object-test.coff-x86-64 | FileCheck %s --check-prefix COFF-X86-64
|
2014-05-14 13:07:47 +08:00
|
|
|
RUN: obj2yaml %p/Inputs/trivial-object-test.elf-mipsel | FileCheck %s --check-prefix ELF-MIPSEL
|
|
|
|
RUN: obj2yaml %p/Inputs/trivial-object-test.elf-mips64el | FileCheck %s --check-prefix ELF-MIPS64EL
|
|
|
|
RUN: obj2yaml %p/Inputs/trivial-object-test.elf-x86-64 | FileCheck %s --check-prefix ELF-X86-64
|
2015-10-23 14:05:55 +08:00
|
|
|
RUN: obj2yaml %p/Inputs/trivial-object-test.elf-avr | FileCheck %s --check-prefix ELF-AVR
|
2017-07-11 04:43:26 +08:00
|
|
|
RUN: obj2yaml %p/Inputs/trivial-object-test.wasm | FileCheck %s --check-prefix WASM
|
|
|
|
RUN: obj2yaml %p/Inputs/unwind-section.elf-x86-64 | FileCheck %s --check-prefix ELF-X86-64-UNWIND
|
2013-04-05 10:02:05 +08:00
|
|
|
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-I386: header:
|
|
|
|
COFF-I386-NEXT: Machine: IMAGE_FILE_MACHINE_I386
|
2013-04-05 10:02:05 +08:00
|
|
|
|
|
|
|
COFF-I386: sections:
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-I386-NEXT: - Name: .text
|
|
|
|
COFF-I386-NEXT: Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
|
|
|
|
COFF-I386-NEXT: Alignment: 16
|
|
|
|
COFF-I386-NEXT: SectionData: 83EC0CC744240800000000C7042400000000E800000000E8000000008B44240883C40CC3
|
2013-04-05 10:02:05 +08:00
|
|
|
|
|
|
|
COFF-I386: Relocations:
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-I386-NEXT: - VirtualAddress: 14
|
2013-06-06 21:06:17 +08:00
|
|
|
COFF-I386-NEXT: SymbolName: L_.str
|
2013-04-05 10:02:05 +08:00
|
|
|
COFF-I386-NEXT: Type: IMAGE_REL_I386_DIR32
|
|
|
|
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-I386: - VirtualAddress: 19
|
2013-06-06 21:06:17 +08:00
|
|
|
COFF-I386-NEXT: SymbolName: _puts
|
2013-04-05 10:02:05 +08:00
|
|
|
COFF-I386-NEXT: Type: IMAGE_REL_I386_REL32
|
|
|
|
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-I386: - VirtualAddress: 24
|
2013-06-06 21:06:17 +08:00
|
|
|
COFF-I386-NEXT: SymbolName: _SomeOtherFunction
|
2013-04-05 10:02:05 +08:00
|
|
|
COFF-I386-NEXT: Type: IMAGE_REL_I386_REL32
|
|
|
|
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-I386: - Name: .data
|
|
|
|
COFF-I386-NEXT: Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
|
|
|
|
COFF-I386-NEXT: Alignment: 1
|
|
|
|
COFF-I386-NEXT: SectionData: 48656C6C6F20576F726C642100
|
2013-04-05 10:02:05 +08:00
|
|
|
|
|
|
|
COFF-I386: symbols:
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-I386-NEXT: - Name: .text
|
2013-04-05 10:02:05 +08:00
|
|
|
COFF-I386-NEXT: Value: 0
|
|
|
|
COFF-I386-NEXT: SectionNumber: 1
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-I386-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
|
|
|
|
COFF-I386-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
|
|
|
|
COFF-I386-NEXT: StorageClass: IMAGE_SYM_CLASS_STATIC
|
2014-03-19 12:47:47 +08:00
|
|
|
COFF-I386-NEXT: SectionDefinition:
|
|
|
|
COFF-I386-NEXT: Length: 36
|
|
|
|
COFF-I386-NEXT: NumberOfRelocations: 3
|
|
|
|
COFF-I386-NEXT: NumberOfLinenumbers: 0
|
|
|
|
COFF-I386-NEXT: CheckSum: 0
|
|
|
|
COFF-I386-NEXT: Number: 1
|
2013-04-05 10:02:05 +08:00
|
|
|
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-I386: - Name: .data
|
2013-04-05 10:02:05 +08:00
|
|
|
COFF-I386-NEXT: Value: 0
|
|
|
|
COFF-I386-NEXT: SectionNumber: 2
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-I386-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
|
|
|
|
COFF-I386-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
|
|
|
|
COFF-I386-NEXT: StorageClass: IMAGE_SYM_CLASS_STATIC
|
2014-03-19 12:47:47 +08:00
|
|
|
COFF-I386-NEXT: SectionDefinition:
|
|
|
|
COFF-I386-NEXT: Length: 13
|
|
|
|
COFF-I386-NEXT: NumberOfRelocations: 0
|
|
|
|
COFF-I386-NEXT: NumberOfLinenumbers: 0
|
|
|
|
COFF-I386-NEXT: CheckSum: 0
|
|
|
|
COFF-I386-NEXT: Number: 2
|
2013-04-05 10:02:05 +08:00
|
|
|
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-I386: - Name: _main
|
2013-04-05 10:02:05 +08:00
|
|
|
COFF-I386-NEXT: Value: 0
|
|
|
|
COFF-I386-NEXT: SectionNumber: 1
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-I386-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
|
|
|
|
COFF-I386-NEXT: ComplexType: IMAGE_SYM_DTYPE_FUNCTION
|
|
|
|
COFF-I386-NEXT: StorageClass: IMAGE_SYM_CLASS_EXTERNAL
|
2013-04-05 10:02:05 +08:00
|
|
|
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-I386: - Name: L_.str
|
2013-04-05 10:02:05 +08:00
|
|
|
COFF-I386-NEXT: Value: 0
|
|
|
|
COFF-I386-NEXT: SectionNumber: 2
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-I386-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
|
|
|
|
COFF-I386-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
|
|
|
|
COFF-I386-NEXT: StorageClass: IMAGE_SYM_CLASS_STATIC
|
2013-04-05 10:02:05 +08:00
|
|
|
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-I386: - Name: _puts
|
2013-04-05 10:02:05 +08:00
|
|
|
COFF-I386-NEXT: Value: 0
|
|
|
|
COFF-I386-NEXT: SectionNumber: 0
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-I386-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
|
|
|
|
COFF-I386-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
|
|
|
|
COFF-I386-NEXT: StorageClass: IMAGE_SYM_CLASS_EXTERNAL
|
2013-04-05 10:02:05 +08:00
|
|
|
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-I386: - Name: _SomeOtherFunction
|
2013-04-05 10:02:05 +08:00
|
|
|
COFF-I386-NEXT: Value: 0
|
|
|
|
COFF-I386-NEXT: SectionNumber: 0
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-I386-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
|
|
|
|
COFF-I386-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
|
|
|
|
COFF-I386-NEXT: StorageClass: IMAGE_SYM_CLASS_EXTERNAL
|
2013-04-05 10:02:05 +08:00
|
|
|
|
|
|
|
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-X86-64: header:
|
|
|
|
COFF-X86-64-NEXT: Machine: IMAGE_FILE_MACHINE_AMD64
|
2013-04-05 10:02:05 +08:00
|
|
|
|
|
|
|
COFF-X86-64: sections:
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-X86-64-NEXT: - Name: .text
|
|
|
|
COFF-X86-64-NEXT: Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
|
|
|
|
COFF-X86-64-NEXT: Alignment: 16
|
|
|
|
COFF-X86-64-NEXT: SectionData: 4883EC28C744242400000000488D0D00000000E800000000E8000000008B4424244883C428C3
|
2013-04-05 10:02:05 +08:00
|
|
|
|
|
|
|
COFF-X86-64: Relocations:
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-X86-64-NEXT: - VirtualAddress: 15
|
2013-06-06 21:06:17 +08:00
|
|
|
COFF-X86-64-NEXT: SymbolName: L.str
|
2013-04-05 10:02:05 +08:00
|
|
|
COFF-X86-64-NEXT: Type: IMAGE_REL_AMD64_REL32
|
|
|
|
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-X86-64: - VirtualAddress: 20
|
2013-06-06 21:06:17 +08:00
|
|
|
COFF-X86-64-NEXT: SymbolName: puts
|
2013-04-05 10:02:05 +08:00
|
|
|
COFF-X86-64-NEXT: Type: IMAGE_REL_AMD64_REL32
|
|
|
|
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-X86-64: - VirtualAddress: 25
|
2013-06-06 21:06:17 +08:00
|
|
|
COFF-X86-64-NEXT: SymbolName: SomeOtherFunction
|
2013-04-05 10:02:05 +08:00
|
|
|
COFF-X86-64-NEXT: Type: IMAGE_REL_AMD64_REL32
|
|
|
|
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-X86-64: - Name: .data
|
|
|
|
COFF-X86-64-NEXT: Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
|
|
|
|
COFF-X86-64-NEXT: Alignment: 1
|
|
|
|
COFF-X86-64-NEXT: SectionData: 48656C6C6F20576F726C642100
|
2013-04-05 10:02:05 +08:00
|
|
|
|
2014-04-08 07:12:20 +08:00
|
|
|
COFF-X86-64: - Name: '.CRT$XCU'
|
|
|
|
COFF-X86-64-NEXT: Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
|
|
|
|
COFF-X86-64-NEXT: Alignment: 8
|
2014-04-10 01:04:27 +08:00
|
|
|
COFF-X86-64-NEXT: SectionData: '0000000000000000'
|
2014-04-08 07:12:20 +08:00
|
|
|
|
|
|
|
COFF-X86-64: Relocations:
|
|
|
|
COFF-X86-64-NEXT: - VirtualAddress: 0
|
|
|
|
COFF-X86-64-NEXT: SymbolName: '??__Ex@@YAXXZ'
|
|
|
|
COFF-X86-64-NEXT: Type: IMAGE_REL_AMD64_ADDR64
|
|
|
|
|
2013-04-05 10:02:05 +08:00
|
|
|
COFF-X86-64: symbols:
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-X86-64-NEXT: - Name: .text
|
2013-04-05 10:02:05 +08:00
|
|
|
COFF-X86-64-NEXT: Value: 0
|
|
|
|
COFF-X86-64-NEXT: SectionNumber: 1
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-X86-64-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
|
|
|
|
COFF-X86-64-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
|
|
|
|
COFF-X86-64-NEXT: StorageClass: IMAGE_SYM_CLASS_STATIC
|
2014-03-19 12:47:47 +08:00
|
|
|
COFF-X86-64-NEXT: SectionDefinition:
|
|
|
|
COFF-X86-64-NEXT: Length: 38
|
|
|
|
COFF-X86-64-NEXT: NumberOfRelocations: 3
|
|
|
|
COFF-X86-64-NEXT: NumberOfLinenumbers: 0
|
|
|
|
COFF-X86-64-NEXT: CheckSum: 0
|
|
|
|
COFF-X86-64-NEXT: Number: 1
|
2013-04-05 10:02:05 +08:00
|
|
|
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-X86-64: - Name: .data
|
2013-04-05 10:02:05 +08:00
|
|
|
COFF-X86-64-NEXT: Value: 0
|
|
|
|
COFF-X86-64-NEXT: SectionNumber: 2
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-X86-64-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
|
|
|
|
COFF-X86-64-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
|
|
|
|
COFF-X86-64-NEXT: StorageClass: IMAGE_SYM_CLASS_STATIC
|
2014-03-19 12:47:47 +08:00
|
|
|
COFF-X86-64-NEXT: SectionDefinition:
|
|
|
|
COFF-X86-64-NEXT: Length: 13
|
|
|
|
COFF-X86-64-NEXT: NumberOfRelocations: 0
|
|
|
|
COFF-X86-64-NEXT: NumberOfLinenumbers: 0
|
|
|
|
COFF-X86-64-NEXT: CheckSum: 0
|
|
|
|
COFF-X86-64-NEXT: Number: 2
|
2013-04-05 10:02:05 +08:00
|
|
|
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-X86-64: - Name: main
|
2013-04-05 10:02:05 +08:00
|
|
|
COFF-X86-64-NEXT: Value: 0
|
|
|
|
COFF-X86-64-NEXT: SectionNumber: 1
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-X86-64-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
|
2014-04-08 07:12:20 +08:00
|
|
|
COFF-X86-64-NEXT: ComplexType: IMAGE_SYM_DTYPE_FUNCTION
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-X86-64-NEXT: StorageClass: IMAGE_SYM_CLASS_EXTERNAL
|
2013-04-05 10:02:05 +08:00
|
|
|
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-X86-64: - Name: L.str
|
2013-04-05 10:02:05 +08:00
|
|
|
COFF-X86-64-NEXT: Value: 0
|
|
|
|
COFF-X86-64-NEXT: SectionNumber: 2
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-X86-64-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
|
|
|
|
COFF-X86-64-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
|
|
|
|
COFF-X86-64-NEXT: StorageClass: IMAGE_SYM_CLASS_STATIC
|
2013-04-05 10:02:05 +08:00
|
|
|
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-X86-64: - Name: puts
|
2013-04-05 10:02:05 +08:00
|
|
|
COFF-X86-64-NEXT: Value: 0
|
|
|
|
COFF-X86-64-NEXT: SectionNumber: 0
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-X86-64-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
|
|
|
|
COFF-X86-64-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
|
|
|
|
COFF-X86-64-NEXT: StorageClass: IMAGE_SYM_CLASS_EXTERNAL
|
2013-04-05 10:02:05 +08:00
|
|
|
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-X86-64: - Name: SomeOtherFunction
|
2013-04-05 10:02:05 +08:00
|
|
|
COFF-X86-64-NEXT: Value: 0
|
|
|
|
COFF-X86-64-NEXT: SectionNumber: 0
|
2013-05-18 06:58:42 +08:00
|
|
|
COFF-X86-64-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
|
|
|
|
COFF-X86-64-NEXT: ComplexType: IMAGE_SYM_DTYPE_NULL
|
|
|
|
COFF-X86-64-NEXT: StorageClass: IMAGE_SYM_CLASS_EXTERNAL
|
2014-04-08 07:12:20 +08:00
|
|
|
|
|
|
|
COFF-X86-64: - Name: '??__Ex@@YAXXZ'
|
|
|
|
COFF-X86-64-NEXT: Value: 0
|
|
|
|
COFF-X86-64-NEXT: SectionNumber: 3
|
|
|
|
COFF-X86-64-NEXT: SimpleType: IMAGE_SYM_TYPE_NULL
|
|
|
|
COFF-X86-64-NEXT: ComplexType: IMAGE_SYM_DTYPE_FUNCTION
|
|
|
|
COFF-X86-64-NEXT: StorageClass: IMAGE_SYM_CLASS_STATIC
|
2014-05-14 13:07:47 +08:00
|
|
|
|
|
|
|
ELF-MIPSEL: FileHeader:
|
|
|
|
ELF-MIPSEL-NEXT: Class: ELFCLASS32
|
|
|
|
ELF-MIPSEL-NEXT: Data: ELFDATA2LSB
|
2014-07-13 23:28:54 +08:00
|
|
|
ELF-MIPSEL-NEXT: OSABI: ELFOSABI_GNU
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-MIPSEL-NEXT: Type: ET_REL
|
|
|
|
ELF-MIPSEL-NEXT: Machine: EM_MIPS
|
2014-05-23 16:07:09 +08:00
|
|
|
ELF-MIPSEL-NEXT: Flags: [ EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_ABI_O32, EF_MIPS_ARCH_32 ]
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-MIPSEL-NEXT: Sections:
|
|
|
|
ELF-MIPSEL-NEXT: - Name: .text
|
|
|
|
ELF-MIPSEL-NEXT: Type: SHT_PROGBITS
|
|
|
|
ELF-MIPSEL-NEXT: Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
|
|
|
|
ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000004
|
|
|
|
ELF-MIPSEL-NEXT: Content: 0000023C00004224E8FFBD271400BFAF1000B0AF218059000000018E000024240000198E09F8200321E000020000198E09F8200321E00002000002241000B08F1400BF8F0800E0031800BD27
|
|
|
|
ELF-MIPSEL-NEXT: - Name: .rel.text
|
|
|
|
ELF-MIPSEL-NEXT: Type: SHT_REL
|
|
|
|
ELF-MIPSEL-NEXT: Link: .symtab
|
|
|
|
ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000004
|
2014-05-29 19:05:31 +08:00
|
|
|
ELF-MIPSEL-NEXT: Info: .text
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-MIPSEL-NEXT: Relocations:
|
2014-07-13 23:28:54 +08:00
|
|
|
ELF-MIPSEL-NEXT: - Offset: 0x0000000000000000
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-MIPSEL-NEXT: Symbol: _gp_disp
|
|
|
|
ELF-MIPSEL-NEXT: Type: R_MIPS_HI16
|
2014-05-16 02:04:09 +08:00
|
|
|
ELF-MIPSEL-NEXT: - Offset: 0x0000000000000004
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-MIPSEL-NEXT: Symbol: _gp_disp
|
|
|
|
ELF-MIPSEL-NEXT: Type: R_MIPS_LO16
|
2014-05-16 02:04:09 +08:00
|
|
|
ELF-MIPSEL-NEXT: - Offset: 0x0000000000000018
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-MIPSEL-NEXT: Symbol: '$.str'
|
|
|
|
ELF-MIPSEL-NEXT: Type: R_MIPS_GOT16
|
2014-05-16 02:04:09 +08:00
|
|
|
ELF-MIPSEL-NEXT: - Offset: 0x000000000000001C
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-MIPSEL-NEXT: Symbol: '$.str'
|
|
|
|
ELF-MIPSEL-NEXT: Type: R_MIPS_LO16
|
2014-05-16 02:04:09 +08:00
|
|
|
ELF-MIPSEL-NEXT: - Offset: 0x0000000000000020
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-MIPSEL-NEXT: Symbol: puts
|
|
|
|
ELF-MIPSEL-NEXT: Type: R_MIPS_CALL16
|
2014-05-16 02:04:09 +08:00
|
|
|
ELF-MIPSEL-NEXT: - Offset: 0x000000000000002C
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-MIPSEL-NEXT: Symbol: SomeOtherFunction
|
|
|
|
ELF-MIPSEL-NEXT: Type: R_MIPS_CALL16
|
|
|
|
ELF-MIPSEL-NEXT: - Name: .data
|
|
|
|
ELF-MIPSEL-NEXT: Type: SHT_PROGBITS
|
|
|
|
ELF-MIPSEL-NEXT: Flags: [ SHF_WRITE, SHF_ALLOC ]
|
|
|
|
ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000004
|
|
|
|
ELF-MIPSEL-NEXT: Content: ''
|
|
|
|
ELF-MIPSEL-NEXT: - Name: .bss
|
|
|
|
ELF-MIPSEL-NEXT: Type: SHT_NOBITS
|
|
|
|
ELF-MIPSEL-NEXT: Flags: [ SHF_WRITE, SHF_ALLOC ]
|
|
|
|
ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000004
|
2015-07-04 07:00:54 +08:00
|
|
|
ELF-MIPSEL-NEXT: Size: 0x0000000000000004
|
2014-07-13 23:28:54 +08:00
|
|
|
ELF-MIPSEL-NEXT: - Name: .mdebug.abi32
|
|
|
|
ELF-MIPSEL-NEXT: Type: SHT_PROGBITS
|
|
|
|
ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000001
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-MIPSEL-NEXT: Content: ''
|
|
|
|
ELF-MIPSEL-NEXT: - Name: .rodata.str1.1
|
|
|
|
ELF-MIPSEL-NEXT: Type: SHT_PROGBITS
|
|
|
|
ELF-MIPSEL-NEXT: Flags: [ SHF_ALLOC, SHF_MERGE, SHF_STRINGS ]
|
|
|
|
ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000001
|
|
|
|
ELF-MIPSEL-NEXT: Content: 48656C6C6F20576F726C640A00
|
|
|
|
ELF-MIPSEL-NEXT: - Name: .reginfo
|
|
|
|
ELF-MIPSEL-NEXT: Type: SHT_MIPS_REGINFO
|
|
|
|
ELF-MIPSEL-NEXT: Flags: [ SHF_ALLOC ]
|
|
|
|
ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000001
|
|
|
|
ELF-MIPSEL-NEXT: Content: '000000000000000000000000000000000000000000000000'
|
2014-07-13 23:28:54 +08:00
|
|
|
ELF-MIPSEL-NEXT: - Name: .MIPS.abiflags
|
|
|
|
ELF-MIPSEL-NEXT: Type: SHT_MIPS_ABIFLAGS
|
|
|
|
ELF-MIPSEL-NEXT: Flags: [ SHF_ALLOC ]
|
|
|
|
ELF-MIPSEL-NEXT: AddressAlign: 0x0000000000000008
|
2015-05-07 23:40:48 +08:00
|
|
|
ELF-MIPSEL-NEXT: ISA: MIPS32
|
|
|
|
ELF-MIPSEL-NEXT: ISARevision: 0x01
|
|
|
|
ELF-MIPSEL-NEXT: FpABI: FP_DOUBLE
|
|
|
|
ELF-MIPSEL-NEXT: GPRSize: REG_32
|
|
|
|
ELF-MIPSEL-NEXT: CPR1Size: REG_32
|
|
|
|
ELF-MIPSEL-NEXT: Flags1: [ ODDSPREG ]
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-MIPSEL-NEXT: Symbols:
|
|
|
|
ELF-MIPSEL-NEXT: Local:
|
|
|
|
ELF-MIPSEL-NEXT: - Name: trivial.ll
|
|
|
|
ELF-MIPSEL-NEXT: Type: STT_FILE
|
|
|
|
ELF-MIPSEL-NEXT: - Name: '$.str'
|
|
|
|
ELF-MIPSEL-NEXT: Type: STT_OBJECT
|
|
|
|
ELF-MIPSEL-NEXT: Section: .rodata.str1.1
|
|
|
|
ELF-MIPSEL-NEXT: Size: 0x000000000000000D
|
2015-06-03 13:14:22 +08:00
|
|
|
ELF-MIPSEL-NEXT: - Type: STT_SECTION
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-MIPSEL-NEXT: Section: .text
|
2015-06-03 13:14:22 +08:00
|
|
|
ELF-MIPSEL-NEXT: - Type: STT_SECTION
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-MIPSEL-NEXT: Section: .data
|
2015-06-03 13:14:22 +08:00
|
|
|
ELF-MIPSEL-NEXT: - Type: STT_SECTION
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-MIPSEL-NEXT: Section: .bss
|
2015-06-03 13:14:22 +08:00
|
|
|
ELF-MIPSEL-NEXT: - Type: STT_SECTION
|
2014-07-13 23:28:54 +08:00
|
|
|
ELF-MIPSEL-NEXT: Section: .mdebug.abi32
|
2015-06-03 13:14:22 +08:00
|
|
|
ELF-MIPSEL-NEXT: - Type: STT_SECTION
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-MIPSEL-NEXT: Section: .rodata.str1.1
|
2015-06-03 13:14:22 +08:00
|
|
|
ELF-MIPSEL-NEXT: - Type: STT_SECTION
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-MIPSEL-NEXT: Section: .reginfo
|
2015-06-03 13:14:22 +08:00
|
|
|
ELF-MIPSEL-NEXT: - Type: STT_SECTION
|
2014-07-13 23:28:54 +08:00
|
|
|
ELF-MIPSEL-NEXT: Section: .MIPS.abiflags
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-MIPSEL-NEXT: Global:
|
|
|
|
ELF-MIPSEL-NEXT: - Name: main
|
|
|
|
ELF-MIPSEL-NEXT: Type: STT_FUNC
|
|
|
|
ELF-MIPSEL-NEXT: Section: .text
|
|
|
|
ELF-MIPSEL-NEXT: Size: 0x000000000000004C
|
2014-07-13 23:28:54 +08:00
|
|
|
ELF-MIPSEL-NEXT: - Name: var
|
|
|
|
ELF-MIPSEL-NEXT: Type: STT_OBJECT
|
|
|
|
ELF-MIPSEL-NEXT: Section: .bss
|
|
|
|
ELF-MIPSEL-NEXT: Size: 0x0000000000000004
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-MIPSEL-NEXT: - Name: SomeOtherFunction
|
|
|
|
ELF-MIPSEL-NEXT: - Name: _gp_disp
|
|
|
|
ELF-MIPSEL-NEXT: - Name: puts
|
|
|
|
|
|
|
|
ELF-MIPS64EL: FileHeader:
|
|
|
|
ELF-MIPS64EL-NEXT: Class: ELFCLASS64
|
|
|
|
ELF-MIPS64EL-NEXT: Data: ELFDATA2LSB
|
|
|
|
ELF-MIPS64EL-NEXT: Type: ET_REL
|
|
|
|
ELF-MIPS64EL-NEXT: Machine: EM_MIPS
|
2014-05-23 16:07:09 +08:00
|
|
|
ELF-MIPS64EL-NEXT: Flags: [ EF_MIPS_ARCH_3 ]
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-MIPS64EL-NEXT: Sections:
|
|
|
|
ELF-MIPS64EL-NEXT: - Name: .text
|
|
|
|
ELF-MIPS64EL-NEXT: Type: SHT_PROGBITS
|
|
|
|
ELF-MIPS64EL-NEXT: Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
|
|
|
|
ELF-MIPS64EL-NEXT: AddressAlign: 0x0000000000000010
|
|
|
|
ELF-MIPS64EL-NEXT: Content: ''
|
|
|
|
ELF-MIPS64EL-NEXT: - Name: .data
|
|
|
|
ELF-MIPS64EL-NEXT: Type: SHT_PROGBITS
|
|
|
|
ELF-MIPS64EL-NEXT: Flags: [ SHF_WRITE, SHF_ALLOC ]
|
|
|
|
ELF-MIPS64EL-NEXT: AddressAlign: 0x0000000000000010
|
|
|
|
ELF-MIPS64EL-NEXT: Content: '00000000000000000000000000000000'
|
|
|
|
ELF-MIPS64EL-NEXT: - Name: .rela.data
|
|
|
|
ELF-MIPS64EL-NEXT: Type: SHT_RELA
|
|
|
|
ELF-MIPS64EL-NEXT: Link: .symtab
|
|
|
|
ELF-MIPS64EL-NEXT: AddressAlign: 0x0000000000000008
|
2014-05-29 19:05:31 +08:00
|
|
|
ELF-MIPS64EL-NEXT: Info: .data
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-MIPS64EL-NEXT: Relocations:
|
|
|
|
ELF-MIPS64EL-NEXT: - Offset: 0
|
|
|
|
ELF-MIPS64EL-NEXT: Symbol: zed
|
|
|
|
ELF-MIPS64EL-NEXT: Type: R_MIPS_64
|
|
|
|
ELF-MIPS64EL-NEXT: - Name: .bss
|
|
|
|
ELF-MIPS64EL-NEXT: Type: SHT_NOBITS
|
|
|
|
ELF-MIPS64EL-NEXT: Flags: [ SHF_WRITE, SHF_ALLOC ]
|
|
|
|
ELF-MIPS64EL-NEXT: AddressAlign: 0x0000000000000010
|
|
|
|
ELF-MIPS64EL-NEXT: - Name: .MIPS.options
|
|
|
|
ELF-MIPS64EL-NEXT: Type: SHT_MIPS_OPTIONS
|
2016-01-21 03:15:18 +08:00
|
|
|
ELF-MIPS64EL-NEXT: Flags: [ SHF_ALLOC, SHF_MIPS_NOSTRIP ]
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-MIPS64EL-NEXT: AddressAlign: 0x0000000000000008
|
|
|
|
ELF-MIPS64EL-NEXT: Content: '01280000000000000000000000000000000000000000000000000000000000000000000000000000'
|
|
|
|
ELF-MIPS64EL-NEXT: - Name: .pdr
|
|
|
|
ELF-MIPS64EL-NEXT: Type: SHT_PROGBITS
|
|
|
|
ELF-MIPS64EL-NEXT: AddressAlign: 0x0000000000000004
|
|
|
|
ELF-MIPS64EL-NEXT: Content: ''
|
|
|
|
ELF-MIPS64EL-NEXT: Symbols:
|
|
|
|
ELF-MIPS64EL-NEXT: Local:
|
2015-06-03 13:14:22 +08:00
|
|
|
ELF-MIPS64EL-NEXT: - Type: STT_SECTION
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-MIPS64EL-NEXT: Section: .text
|
2015-06-03 13:14:22 +08:00
|
|
|
ELF-MIPS64EL-NEXT: - Type: STT_SECTION
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-MIPS64EL-NEXT: Section: .data
|
2015-06-03 13:14:22 +08:00
|
|
|
ELF-MIPS64EL-NEXT: - Type: STT_SECTION
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-MIPS64EL-NEXT: Section: .bss
|
|
|
|
ELF-MIPS64EL-NEXT: - Name: bar
|
|
|
|
ELF-MIPS64EL-NEXT: Section: .data
|
2015-06-03 13:14:22 +08:00
|
|
|
ELF-MIPS64EL-NEXT: - Type: STT_SECTION
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-MIPS64EL-NEXT: Section: .MIPS.options
|
2015-06-03 13:14:22 +08:00
|
|
|
ELF-MIPS64EL-NEXT: - Type: STT_SECTION
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-MIPS64EL-NEXT: Section: .pdr
|
|
|
|
ELF-MIPS64EL-NEXT: Global:
|
|
|
|
ELF-MIPS64EL-NEXT: - Name: zed
|
|
|
|
|
|
|
|
ELF-X86-64: FileHeader:
|
|
|
|
ELF-X86-64-NEXT: Class: ELFCLASS64
|
|
|
|
ELF-X86-64-NEXT: Data: ELFDATA2LSB
|
|
|
|
ELF-X86-64-NEXT: OSABI: ELFOSABI_GNU
|
|
|
|
ELF-X86-64-NEXT: Type: ET_REL
|
|
|
|
ELF-X86-64-NEXT: Machine: EM_X86_64
|
|
|
|
ELF-X86-64-NEXT: Sections:
|
|
|
|
ELF-X86-64-NEXT: - Name: .text
|
|
|
|
ELF-X86-64-NEXT: Type: SHT_PROGBITS
|
|
|
|
ELF-X86-64-NEXT: Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
|
|
|
|
ELF-X86-64-NEXT: AddressAlign: 0x0000000000000010
|
|
|
|
ELF-X86-64-NEXT: Content: 4883EC08C744240400000000BF00000000E80000000030C0E8000000008B4424044883C408C3
|
|
|
|
ELF-X86-64-NEXT: - Name: .rodata.str1.1
|
|
|
|
ELF-X86-64-NEXT: Type: SHT_PROGBITS
|
|
|
|
ELF-X86-64-NEXT: Flags: [ SHF_ALLOC, SHF_MERGE, SHF_STRINGS ]
|
|
|
|
ELF-X86-64-NEXT: Address: 0x0000000000000026
|
|
|
|
ELF-X86-64-NEXT: AddressAlign: 0x0000000000000001
|
|
|
|
ELF-X86-64-NEXT: Content: 48656C6C6F20576F726C642100
|
|
|
|
ELF-X86-64-NEXT: - Name: .note.GNU-stack
|
|
|
|
ELF-X86-64-NEXT: Type: SHT_PROGBITS
|
|
|
|
ELF-X86-64-NEXT: Address: 0x0000000000000033
|
|
|
|
ELF-X86-64-NEXT: AddressAlign: 0x0000000000000001
|
|
|
|
ELF-X86-64-NEXT: Content: ''
|
|
|
|
ELF-X86-64-NEXT: - Name: .rela.text
|
|
|
|
ELF-X86-64-NEXT: Type: SHT_RELA
|
|
|
|
ELF-X86-64-NEXT: Address: 0x0000000000000038
|
|
|
|
ELF-X86-64-NEXT: Link: .symtab
|
|
|
|
ELF-X86-64-NEXT: AddressAlign: 0x0000000000000008
|
2014-05-29 19:05:31 +08:00
|
|
|
ELF-X86-64-NEXT: Info: .text
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-X86-64-NEXT: Relocations:
|
2014-05-16 02:04:09 +08:00
|
|
|
ELF-X86-64-NEXT: - Offset: 0x000000000000000D
|
2015-06-03 13:14:22 +08:00
|
|
|
ELF-X86-64-NEXT: Symbol: ''
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-X86-64-NEXT: Type: R_X86_64_32S
|
2014-05-16 02:04:09 +08:00
|
|
|
ELF-X86-64-NEXT: - Offset: 0x0000000000000012
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-X86-64-NEXT: Symbol: puts
|
|
|
|
ELF-X86-64-NEXT: Type: R_X86_64_PC32
|
2014-05-16 02:04:09 +08:00
|
|
|
ELF-X86-64-NEXT: Addend: -4
|
|
|
|
ELF-X86-64-NEXT: - Offset: 0x0000000000000019
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-X86-64-NEXT: Symbol: SomeOtherFunction
|
|
|
|
ELF-X86-64-NEXT: Type: R_X86_64_PC32
|
2014-05-16 02:04:09 +08:00
|
|
|
ELF-X86-64-NEXT: Addend: -4
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-X86-64-NEXT: Symbols:
|
|
|
|
ELF-X86-64-NEXT: Local:
|
|
|
|
ELF-X86-64-NEXT: - Name: trivial-object-test.s
|
|
|
|
ELF-X86-64-NEXT: Type: STT_FILE
|
2015-06-03 13:14:22 +08:00
|
|
|
ELF-X86-64-NEXT: - Type: STT_SECTION
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-X86-64-NEXT: Section: .text
|
2015-06-03 13:14:22 +08:00
|
|
|
ELF-X86-64-NEXT: - Type: STT_SECTION
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-X86-64-NEXT: Section: .rodata.str1.1
|
2015-06-03 13:14:22 +08:00
|
|
|
ELF-X86-64-NEXT: - Type: STT_SECTION
|
2014-05-14 13:07:47 +08:00
|
|
|
ELF-X86-64-NEXT: Section: .note.GNU-stack
|
|
|
|
ELF-X86-64-NEXT: Global:
|
|
|
|
ELF-X86-64-NEXT: - Name: main
|
|
|
|
ELF-X86-64-NEXT: Type: STT_FUNC
|
|
|
|
ELF-X86-64-NEXT: Section: .text
|
|
|
|
ELF-X86-64-NEXT: Size: 0x0000000000000026
|
|
|
|
ELF-X86-64-NEXT: - Name: SomeOtherFunction
|
|
|
|
ELF-X86-64-NEXT: - Name: puts
|
2014-07-13 02:25:08 +08:00
|
|
|
|
2015-10-23 14:05:55 +08:00
|
|
|
|
2017-07-11 04:43:26 +08:00
|
|
|
ELF-AVR: FileHeader:
|
2015-10-23 14:05:55 +08:00
|
|
|
ELF-AVR-NEXT: Class: ELFCLASS32
|
|
|
|
ELF-AVR-NEXT: Data: ELFDATA2LSB
|
|
|
|
ELF-AVR-NEXT: Type: ET_EXEC
|
|
|
|
ELF-AVR-NEXT: Machine: EM_AVR
|
|
|
|
ELF-AVR-NEXT: Flags: [ EF_AVR_ARCH_AVR2 ]
|
2017-07-11 04:43:26 +08:00
|
|
|
ELF-AVR-NEXT: Sections:
|
2015-10-23 14:05:55 +08:00
|
|
|
ELF-AVR-NEXT: - Name: .text
|
|
|
|
ELF-AVR-NEXT: Type: SHT_PROGBITS
|
|
|
|
ELF-AVR-NEXT: Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
|
|
|
|
ELF-AVR-NEXT: AddressAlign: 0x0000000000000002
|
|
|
|
ELF-AVR-NEXT: Content: C20E0895
|
|
|
|
ELF-AVR-NEXT: - Name: .data
|
|
|
|
ELF-AVR-NEXT: Type: SHT_PROGBITS
|
|
|
|
ELF-AVR-NEXT: Flags: [ SHF_WRITE, SHF_ALLOC ]
|
|
|
|
ELF-AVR-NEXT: Address: 0x0000000000800060
|
|
|
|
ELF-AVR-NEXT: AddressAlign: 0x0000000000000001
|
|
|
|
ELF-AVR-NEXT: Content: ''
|
2017-07-11 04:43:26 +08:00
|
|
|
ELF-AVR-NEXT: Symbols:
|
|
|
|
ELF-AVR-NEXT: Local:
|
2015-10-23 14:05:55 +08:00
|
|
|
ELF-AVR-NEXT: - Type: STT_SECTION
|
|
|
|
ELF-AVR-NEXT: Section: .text
|
|
|
|
ELF-AVR-NEXT: - Type: STT_SECTION
|
|
|
|
ELF-AVR-NEXT: Section: .data
|
|
|
|
ELF-AVR-NEXT: Value: 0x0000000000800060
|
|
|
|
ELF-AVR-NEXT: - Name: a.o
|
|
|
|
ELF-AVR-NEXT: Type: STT_FILE
|
|
|
|
ELF-AVR-NEXT: - Name: main
|
|
|
|
ELF-AVR-NEXT: Section: .text
|
2017-07-11 04:43:26 +08:00
|
|
|
ELF-AVR-NEXT: Global:
|
2015-10-23 14:05:55 +08:00
|
|
|
ELF-AVR-NEXT: - Name: __trampolines_start
|
|
|
|
ELF-AVR-NEXT: Section: .text
|
|
|
|
ELF-AVR-NEXT: - Name: _etext
|
|
|
|
ELF-AVR-NEXT: Section: .text
|
|
|
|
ELF-AVR-NEXT: Value: 0x0000000000000004
|
|
|
|
ELF-AVR-NEXT: - Name: __data_load_end
|
|
|
|
ELF-AVR-NEXT: Value: 0x0000000000000004
|
|
|
|
ELF-AVR-NEXT: - Name: __trampolines_end
|
|
|
|
ELF-AVR-NEXT: Section: .text
|
|
|
|
ELF-AVR-NEXT: - Name: __data_load_start
|
|
|
|
ELF-AVR-NEXT: Value: 0x0000000000000004
|
|
|
|
ELF-AVR-NEXT: - Name: __dtors_end
|
|
|
|
ELF-AVR-NEXT: Section: .text
|
|
|
|
ELF-AVR-NEXT: - Name: __eeprom_end
|
|
|
|
ELF-AVR-NEXT: Section: .data
|
|
|
|
ELF-AVR-NEXT: Value: 0x0000000000810000
|
|
|
|
ELF-AVR-NEXT: - Name: __ctors_start
|
|
|
|
ELF-AVR-NEXT: Section: .text
|
|
|
|
ELF-AVR-NEXT: - Name: __dtors_start
|
|
|
|
ELF-AVR-NEXT: Section: .text
|
|
|
|
ELF-AVR-NEXT: - Name: __ctors_end
|
|
|
|
ELF-AVR-NEXT: Section: .text
|
|
|
|
ELF-AVR-NEXT: - Name: _edata
|
|
|
|
ELF-AVR-NEXT: Section: .data
|
|
|
|
ELF-AVR-NEXT: Value: 0x0000000000800060
|
|
|
|
ELF-AVR-NEXT: - Name: _end
|
|
|
|
ELF-AVR-NEXT: Section: .data
|
|
|
|
ELF-AVR-NEXT: Value: 0x0000000000800060
|
|
|
|
|
2017-07-11 04:43:26 +08:00
|
|
|
WASM: --- !WASM
|
|
|
|
WASM-NEXT: FileHeader:
|
|
|
|
WASM-NEXT: Version: 0x00000001
|
|
|
|
WASM: - Type: EXPORT
|
|
|
|
WASM-NEXT: Exports:
|
|
|
|
WASM-NEXT: - Name: main
|
|
|
|
WASM-NEXT: Kind: FUNCTION
|
|
|
|
WASM-NEXT: Index: 2
|
|
|
|
WASM-NEXT: - Name: var
|
|
|
|
WASM-NEXT: Kind: GLOBAL
|
|
|
|
WASM-NEXT: Index: 1
|
2015-10-23 14:05:55 +08:00
|
|
|
|
2014-07-13 02:25:08 +08:00
|
|
|
ELF-X86-64-UNWIND: - Name: .eh_frame
|
|
|
|
ELF-X86-64-UNWIND-NEXT: Type: SHT_X86_64_UNWIND
|
|
|
|
ELF-X86-64-UNWIND-NEXT: Flags: [ SHF_ALLOC ]
|
|
|
|
ELF-X86-64-UNWIND-NEXT: AddressAlign: 0x0000000000000001
|
|
|
|
ELF-X86-64-UNWIND-NEXT: Content: ''
|
2015-09-20 04:49:34 +08:00
|
|
|
|
2015-09-20 04:52:47 +08:00
|
|
|
RUN: not obj2yaml %t.blah 2>&1 | FileCheck --check-prefix=ENOENT %s
|
2017-06-17 07:29:54 +08:00
|
|
|
ENOENT: Error reading file: {{.*}}.blah: {{[Nn]}}o such file or directory
|