blob: 4900c4f57b66517739d9bf7fb7915fe60f78ea78 [file] [log] [blame]
RUN: llvm-readobj -s %p/Inputs/trivial.obj.coff-i386 \
RUN: | FileCheck %s -check-prefix COFF
RUN: llvm-readobj -s %p/Inputs/trivial.obj.elf-i386 \
RUN: | FileCheck %s -check-prefix ELF
RUN: llvm-readobj -s %p/Inputs/trivial.obj.elf-mipsel \
RUN: | FileCheck %s -check-prefix ELF-MIPSEL
RUN: llvm-readobj -s %p/Inputs/trivial.obj.macho-i386 \
RUN: | FileCheck %s -check-prefix MACHO-I386
RUN: llvm-readobj -s %p/Inputs/trivial.obj.macho-x86-64 \
RUN: | FileCheck %s -check-prefix MACHO-X86-64
RUN: llvm-readobj -s %p/Inputs/trivial.obj.macho-ppc \
RUN: | FileCheck %s -check-prefix MACHO-PPC
RUN: llvm-readobj -s %p/Inputs/trivial.obj.macho-ppc64 \
RUN: | FileCheck %s -check-prefix MACHO-PPC64
RUN: llvm-readobj -s %p/Inputs/trivial.obj.macho-arm \
RUN: | FileCheck %s -check-prefix MACHO-ARM
RUN: llvm-readobj -s %p/Inputs/trivial.obj.wasm \
RUN: | FileCheck %s -check-prefix WASM
COFF: Sections [
COFF-NEXT: Section {
COFF-NEXT: Number: 1
COFF-NEXT: Name: .text (2E 74 65 78 74 00 00 00)
COFF-NEXT: VirtualSize: 0x0
COFF-NEXT: VirtualAddress: 0x0
COFF-NEXT: RawDataSize: 22
COFF-NEXT: PointerToRawData: 0x64
COFF-NEXT: PointerToRelocations: 0x7A
COFF-NEXT: PointerToLineNumbers: 0x0
COFF-NEXT: RelocationCount: 3
COFF-NEXT: LineNumberCount: 0
COFF-NEXT: Characteristics [ (0x60500020)
COFF-NEXT: IMAGE_SCN_ALIGN_16BYTES (0x500000)
COFF-NEXT: IMAGE_SCN_CNT_CODE (0x20)
COFF-NEXT: IMAGE_SCN_MEM_EXECUTE (0x20000000)
COFF-NEXT: IMAGE_SCN_MEM_READ (0x40000000)
COFF-NEXT: ]
COFF-NEXT: }
COFF-NEXT: Section {
COFF-NEXT: Number: 2
COFF-NEXT: Name: .data (2E 64 61 74 61 00 00 00)
COFF-NEXT: VirtualSize: 0x0
COFF-NEXT: VirtualAddress: 0x0
COFF-NEXT: RawDataSize: 13
COFF-NEXT: PointerToRawData: 0x98
COFF-NEXT: PointerToRelocations: 0x0
COFF-NEXT: PointerToLineNumbers: 0x0
COFF-NEXT: RelocationCount: 0
COFF-NEXT: LineNumberCount: 0
COFF-NEXT: Characteristics [ (0xC0300040)
COFF-NEXT: IMAGE_SCN_ALIGN_4BYTES (0x300000)
COFF-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA (0x40)
COFF-NEXT: IMAGE_SCN_MEM_READ (0x40000000)
COFF-NEXT: IMAGE_SCN_MEM_WRITE (0x80000000)
COFF-NEXT: ]
COFF-NEXT: }
COFF-NEXT: ]
ELF: Sections [
ELF-NEXT: Section {
ELF-NEXT: Index: 0
ELF-NEXT: Name: (0)
ELF-NEXT: Type: SHT_NULL (0x0)
ELF-NEXT: Flags [ (0x0)
ELF-NEXT: ]
ELF-NEXT: Address: 0x0
ELF-NEXT: Offset: 0x0
ELF-NEXT: Size: 0
ELF-NEXT: Link: 0
ELF-NEXT: Info: 0
ELF-NEXT: AddressAlignment: 0
ELF-NEXT: EntrySize: 0
ELF-NEXT: }
ELF-NEXT: Section {
ELF-NEXT: Index: 1
ELF-NEXT: Name: .text (5)
ELF-NEXT: Type: SHT_PROGBITS (0x1)
ELF-NEXT: Flags [ (0x6)
ELF-NEXT: SHF_ALLOC (0x2)
ELF-NEXT: SHF_EXECINSTR (0x4)
ELF-NEXT: ]
ELF-NEXT: Address: 0x0
ELF-NEXT: Offset: 0x40
ELF-NEXT: Size: 42
ELF-NEXT: Link: 0
ELF-NEXT: Info: 0
ELF-NEXT: AddressAlignment: 16
ELF-NEXT: EntrySize: 0
ELF-NEXT: }
ELF-MIPSEL: Section {
ELF-MIPSEL: Index: 4
ELF-MIPSEL-NEXT: Name: .reginfo (27)
ELF-MIPSEL-NEXT: Type: SHT_MIPS_REGINFO (0x70000006)
ELF-MIPSEL-NEXT: Flags [ (0x2)
ELF-MIPSEL-NEXT: SHF_ALLOC (0x2)
ELF-MIPSEL-NEXT: ]
ELF-MIPSEL-NEXT: Address: 0x0
ELF-MIPSEL-NEXT: Offset: 0x34
ELF-MIPSEL-NEXT: Size: 24
ELF-MIPSEL-NEXT: Link: 0
ELF-MIPSEL-NEXT: Info: 0
ELF-MIPSEL-NEXT: AddressAlignment: 1
ELF-MIPSEL-NEXT: EntrySize: 0
ELF-MIPSEL-NEXT: }
ELF-MIPSEL-NEXT: Section {
ELF-MIPSEL-NEXT: Index: 5
ELF-MIPSEL-NEXT: Name: .MIPS.abiflags (12)
ELF-MIPSEL-NEXT: Type: SHT_MIPS_ABIFLAGS (0x7000002A)
ELF-MIPSEL-NEXT: Flags [ (0x2)
ELF-MIPSEL-NEXT: SHF_ALLOC (0x2)
ELF-MIPSEL-NEXT: ]
ELF-MIPSEL-NEXT: Address: 0x0
ELF-MIPSEL-NEXT: Offset: 0x50
ELF-MIPSEL-NEXT: Size: 24
ELF-MIPSEL-NEXT: Link: 0
ELF-MIPSEL-NEXT: Info: 0
ELF-MIPSEL-NEXT: AddressAlignment: 8
ELF-MIPSEL-NEXT: EntrySize: 0
ELF-MIPSEL-NEXT: }
MACHO-I386: Sections [
MACHO-I386-NEXT: Section {
MACHO-I386-NEXT: Index: 0
MACHO-I386-NEXT: Name: __text (5F 5F 74 65 78 74 00 00 00 00 00 00 00 00 00 00)
MACHO-I386-NEXT: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
MACHO-I386-NEXT: Address: 0x0
MACHO-I386-NEXT: Size: 0x22
MACHO-I386-NEXT: Offset: 324
MACHO-I386-NEXT: Alignment: 4
MACHO-I386-NEXT: RelocationOffset: 0x174
MACHO-I386-NEXT: RelocationCount: 4
MACHO-I386-NEXT: Type: 0x0
MACHO-I386-NEXT: Attributes [ (0x800004)
MACHO-I386-NEXT: PureInstructions (0x800000)
MACHO-I386-NEXT: SomeInstructions (0x4)
MACHO-I386-NEXT: ]
MACHO-I386-NEXT: Reserved1: 0x0
MACHO-I386-NEXT: Reserved2: 0x0
MACHO-I386-NEXT: }
MACHO-I386-NEXT: Section {
MACHO-I386-NEXT: Index: 1
MACHO-I386-NEXT: Name: __cstring (5F 5F 63 73 74 72 69 6E 67 00 00 00 00 00 00 00)
MACHO-I386-NEXT: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
MACHO-I386-NEXT: Address: 0x22
MACHO-I386-NEXT: Size: 0xD
MACHO-I386-NEXT: Offset: 358
MACHO-I386-NEXT: Alignment: 0
MACHO-I386-NEXT: RelocationOffset: 0x0
MACHO-I386-NEXT: RelocationCount: 0
MACHO-I386-NEXT: Type: ExtReloc (0x2)
MACHO-I386-NEXT: Attributes [ (0x0)
MACHO-I386-NEXT: ]
MACHO-I386-NEXT: Reserved1: 0x0
MACHO-I386-NEXT: Reserved2: 0x0
MACHO-I386-NEXT: }
MACHO-X86-64: Sections [
MACHO-X86-64-NEXT: Section {
MACHO-X86-64-NEXT: Index: 0
MACHO-X86-64-NEXT: Name: __text (5F 5F 74 65 78 74 00 00 00 00 00 00 00 00 00 00)
MACHO-X86-64-NEXT: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
MACHO-X86-64-NEXT: Address: 0x0
MACHO-X86-64-NEXT: Size: 0x16
MACHO-X86-64-NEXT: Offset: 368
MACHO-X86-64-NEXT: Alignment: 4
MACHO-X86-64-NEXT: RelocationOffset: 0x194
MACHO-X86-64-NEXT: RelocationCount: 3
MACHO-X86-64-NEXT: Type: 0x0
MACHO-X86-64-NEXT: Attributes [ (0x800004)
MACHO-X86-64-NEXT: PureInstructions (0x800000)
MACHO-X86-64-NEXT: SomeInstructions (0x4)
MACHO-X86-64-NEXT: ]
MACHO-X86-64-NEXT: Reserved1: 0x0
MACHO-X86-64-NEXT: Reserved2: 0x0
MACHO-X86-64-NEXT: Reserved3: 0x0
MACHO-X86-64-NEXT: }
MACHO-X86-64-NEXT: Section {
MACHO-X86-64-NEXT: Index: 1
MACHO-X86-64-NEXT: Name: __cstring (5F 5F 63 73 74 72 69 6E 67 00 00 00 00 00 00 00)
MACHO-X86-64-NEXT: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
MACHO-X86-64-NEXT: Address: 0x16
MACHO-X86-64-NEXT: Size: 0xD
MACHO-X86-64-NEXT: Offset: 390
MACHO-X86-64-NEXT: Alignment: 0
MACHO-X86-64-NEXT: RelocationOffset: 0x0
MACHO-X86-64-NEXT: RelocationCount: 0
MACHO-X86-64-NEXT: Type: ExtReloc (0x2)
MACHO-X86-64-NEXT: Attributes [ (0x0)
MACHO-X86-64-NEXT: ]
MACHO-X86-64-NEXT: Reserved1: 0x0
MACHO-X86-64-NEXT: Reserved2: 0x0
MACHO-X86-64-NEXT: Reserved3: 0x0
MACHO-X86-64-NEXT: }
MACHO-X86-64-NEXT:]
MACHO-PPC: Sections [
MACHO-PPC-NEXT: Section {
MACHO-PPC-NEXT: Index: 0
MACHO-PPC-NEXT: Name: __text (5F 5F 74 65 78 74 00 00 00 00 00 00 00 00 00 00)
MACHO-PPC-NEXT: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
MACHO-PPC-NEXT: Address: 0x0
MACHO-PPC-NEXT: Size: 0x3C
MACHO-PPC-NEXT: Offset: 528
MACHO-PPC-NEXT: Alignment: 2
MACHO-PPC-NEXT: RelocationOffset: 0x27C
MACHO-PPC-NEXT: RelocationCount: 5
MACHO-PPC-NEXT: Type: 0x0
MACHO-PPC-NEXT: Attributes [ (0x800004)
MACHO-PPC-NEXT: PureInstructions (0x800000)
MACHO-PPC-NEXT: SomeInstructions (0x4)
MACHO-PPC-NEXT: ]
MACHO-PPC-NEXT: Reserved1: 0x0
MACHO-PPC-NEXT: Reserved2: 0x0
MACHO-PPC-NEXT: }
MACHO-PPC-NEXT: Section {
MACHO-PPC-NEXT: Index: 1
MACHO-PPC-NEXT: Name: __picsymbolstub1 (5F 5F 70 69 63 73 79 6D 62 6F 6C 73 74 75 62 31)
MACHO-PPC-NEXT: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
MACHO-PPC-NEXT: Address: 0x40
MACHO-PPC-NEXT: Size: 0x20
MACHO-PPC-NEXT: Offset: 592
MACHO-PPC-NEXT: Alignment: 5
MACHO-PPC-NEXT: RelocationOffset: 0x2A4
MACHO-PPC-NEXT: RelocationCount: 4
MACHO-PPC-NEXT: Type: 0x8
MACHO-PPC-NEXT: Attributes [ (0x800004)
MACHO-PPC-NEXT: PureInstructions (0x800000)
MACHO-PPC-NEXT: SomeInstructions (0x4)
MACHO-PPC-NEXT: ]
MACHO-PPC-NEXT: Reserved1: 0x0
MACHO-PPC-NEXT: Reserved2: 0x20
MACHO-PPC-NEXT: }
MACHO-PPC-NEXT: Section {
MACHO-PPC-NEXT: Index: 2
MACHO-PPC-NEXT: Name: __data (5F 5F 64 61 74 61 00 00 00 00 00 00 00 00 00 00)
MACHO-PPC-NEXT: Segment: __DATA (5F 5F 44 41 54 41 00 00 00 00 00 00 00 00 00 00)
MACHO-PPC-NEXT: Address: 0x60
MACHO-PPC-NEXT: Size: 0x4
MACHO-PPC-NEXT: Offset: 624
MACHO-PPC-NEXT: Alignment: 2
MACHO-PPC-NEXT: RelocationOffset: 0x0
MACHO-PPC-NEXT: RelocationCount: 0
MACHO-PPC-NEXT: Type: 0x0
MACHO-PPC-NEXT: Attributes [ (0x0)
MACHO-PPC-NEXT: ]
MACHO-PPC-NEXT: Reserved1: 0x0
MACHO-PPC-NEXT: Reserved2: 0x0
MACHO-PPC-NEXT: }
MACHO-PPC-NEXT: Section {
MACHO-PPC-NEXT: Index: 3
MACHO-PPC-NEXT: Name: __nl_symbol_ptr (5F 5F 6E 6C 5F 73 79 6D 62 6F 6C 5F 70 74 72 00)
MACHO-PPC-NEXT: Segment: __DATA (5F 5F 44 41 54 41 00 00 00 00 00 00 00 00 00 00)
MACHO-PPC-NEXT: Address: 0x64
MACHO-PPC-NEXT: Size: 0x4
MACHO-PPC-NEXT: Offset: 628
MACHO-PPC-NEXT: Alignment: 2
MACHO-PPC-NEXT: RelocationOffset: 0x0
MACHO-PPC-NEXT: RelocationCount: 0
MACHO-PPC-NEXT: Type: 0x6
MACHO-PPC-NEXT: Attributes [ (0x0)
MACHO-PPC-NEXT: ]
MACHO-PPC-NEXT: Reserved1: 0x1
MACHO-PPC-NEXT: Reserved2: 0x0
MACHO-PPC-NEXT: }
MACHO-PPC-NEXT: Section {
MACHO-PPC-NEXT: Index: 4
MACHO-PPC-NEXT: Name: __la_symbol_ptr (5F 5F 6C 61 5F 73 79 6D 62 6F 6C 5F 70 74 72 00)
MACHO-PPC-NEXT: Segment: __DATA (5F 5F 44 41 54 41 00 00 00 00 00 00 00 00 00 00)
MACHO-PPC-NEXT: Address: 0x68
MACHO-PPC-NEXT: Size: 0x4
MACHO-PPC-NEXT: Offset: 632
MACHO-PPC-NEXT: Alignment: 2
MACHO-PPC-NEXT: RelocationOffset: 0x2C4
MACHO-PPC-NEXT: RelocationCount: 1
MACHO-PPC-NEXT: Type: 0x7
MACHO-PPC-NEXT: Attributes [ (0x0)
MACHO-PPC-NEXT: ]
MACHO-PPC-NEXT: Reserved1: 0x2
MACHO-PPC-NEXT: Reserved2: 0x0
MACHO-PPC-NEXT: }
MACHO-PPC-NEXT: ]
MACHO-PPC64: Sections [
MACHO-PPC64-NEXT: Section {
MACHO-PPC64-NEXT: Index: 0
MACHO-PPC64-NEXT: Name: __text (5F 5F 74 65 78 74 00 00 00 00 00 00 00 00 00 00)
MACHO-PPC64-NEXT: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
MACHO-PPC64-NEXT: Address: 0x0
MACHO-PPC64-NEXT: Size: 0x3C
MACHO-PPC64-NEXT: Offset: 608
MACHO-PPC64-NEXT: Alignment: 2
MACHO-PPC64-NEXT: RelocationOffset: 0x2D4
MACHO-PPC64-NEXT: RelocationCount: 5
MACHO-PPC64-NEXT: Type: 0x0
MACHO-PPC64-NEXT: Attributes [ (0x800004)
MACHO-PPC64-NEXT: PureInstructions (0x800000)
MACHO-PPC64-NEXT: SomeInstructions (0x4)
MACHO-PPC64-NEXT: ]
MACHO-PPC64-NEXT: Reserved1: 0x0
MACHO-PPC64-NEXT: Reserved2: 0x0
MACHO-PPC64-NEXT: Reserved3: 0x0
MACHO-PPC64-NEXT: }
MACHO-PPC64-NEXT: Section {
MACHO-PPC64-NEXT: Index: 1
MACHO-PPC64-NEXT: Name: __picsymbolstub1 (5F 5F 70 69 63 73 79 6D 62 6F 6C 73 74 75 62 31)
MACHO-PPC64-NEXT: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
MACHO-PPC64-NEXT: Address: 0x40
MACHO-PPC64-NEXT: Size: 0x20
MACHO-PPC64-NEXT: Offset: 672
MACHO-PPC64-NEXT: Alignment: 5
MACHO-PPC64-NEXT: RelocationOffset: 0x2FC
MACHO-PPC64-NEXT: RelocationCount: 4
MACHO-PPC64-NEXT: Type: 0x8
MACHO-PPC64-NEXT: Attributes [ (0x800004)
MACHO-PPC64-NEXT: PureInstructions (0x800000)
MACHO-PPC64-NEXT: SomeInstructions (0x4)
MACHO-PPC64-NEXT: ]
MACHO-PPC64-NEXT: Reserved1: 0x0
MACHO-PPC64-NEXT: Reserved2: 0x20
MACHO-PPC64-NEXT: Reserved3: 0x0
MACHO-PPC64-NEXT: }
MACHO-PPC64-NEXT: Section {
MACHO-PPC64-NEXT: Index: 2
MACHO-PPC64-NEXT: Name: __data (5F 5F 64 61 74 61 00 00 00 00 00 00 00 00 00 00)
MACHO-PPC64-NEXT: Segment: __DATA (5F 5F 44 41 54 41 00 00 00 00 00 00 00 00 00 00)
MACHO-PPC64-NEXT: Address: 0x60
MACHO-PPC64-NEXT: Size: 0x4
MACHO-PPC64-NEXT: Offset: 704
MACHO-PPC64-NEXT: Alignment: 2
MACHO-PPC64-NEXT: RelocationOffset: 0x0
MACHO-PPC64-NEXT: RelocationCount: 0
MACHO-PPC64-NEXT: Type: 0x0
MACHO-PPC64-NEXT: Attributes [ (0x0)
MACHO-PPC64-NEXT: ]
MACHO-PPC64-NEXT: Reserved1: 0x0
MACHO-PPC64-NEXT: Reserved2: 0x0
MACHO-PPC64-NEXT: Reserved3: 0x0
MACHO-PPC64-NEXT: }
MACHO-PPC64-NEXT: Section {
MACHO-PPC64-NEXT: Index: 3
MACHO-PPC64-NEXT: Name: __nl_symbol_ptr (5F 5F 6E 6C 5F 73 79 6D 62 6F 6C 5F 70 74 72 00)
MACHO-PPC64-NEXT: Segment: __DATA (5F 5F 44 41 54 41 00 00 00 00 00 00 00 00 00 00)
MACHO-PPC64-NEXT: Address: 0x64
MACHO-PPC64-NEXT: Size: 0x8
MACHO-PPC64-NEXT: Offset: 708
MACHO-PPC64-NEXT: Alignment: 2
MACHO-PPC64-NEXT: RelocationOffset: 0x0
MACHO-PPC64-NEXT: RelocationCount: 0
MACHO-PPC64-NEXT: Type: 0x6
MACHO-PPC64-NEXT: Attributes [ (0x0)
MACHO-PPC64-NEXT: ]
MACHO-PPC64-NEXT: Reserved1: 0x1
MACHO-PPC64-NEXT: Reserved2: 0x0
MACHO-PPC64-NEXT: Reserved3: 0x0
MACHO-PPC64-NEXT: }
MACHO-PPC64-NEXT: Section {
MACHO-PPC64-NEXT: Index: 4
MACHO-PPC64-NEXT: Name: __la_symbol_ptr (5F 5F 6C 61 5F 73 79 6D 62 6F 6C 5F 70 74 72 00)
MACHO-PPC64-NEXT: Segment: __DATA (5F 5F 44 41 54 41 00 00 00 00 00 00 00 00 00 00)
MACHO-PPC64-NEXT: Address: 0x6C
MACHO-PPC64-NEXT: Size: 0x8
MACHO-PPC64-NEXT: Offset: 716
MACHO-PPC64-NEXT: Alignment: 2
MACHO-PPC64-NEXT: RelocationOffset: 0x31C
MACHO-PPC64-NEXT: RelocationCount: 1
MACHO-PPC64-NEXT: Type: 0x7
MACHO-PPC64-NEXT: Attributes [ (0x0)
MACHO-PPC64-NEXT: ]
MACHO-PPC64-NEXT: Reserved1: 0x2
MACHO-PPC64-NEXT: Reserved2: 0x0
MACHO-PPC64-NEXT: Reserved3: 0x0
MACHO-PPC64-NEXT: }
MACHO-PPC64-NEXT: ]
MACHO-ARM: Sections [
MACHO-ARM-NEXT: Section {
MACHO-ARM-NEXT: Index: 0
MACHO-ARM-NEXT: Name: __text (5F 5F 74 65 78 74 00 00 00 00 00 00 00 00 00 00)
MACHO-ARM-NEXT: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
MACHO-ARM-NEXT: Address: 0x0
MACHO-ARM-NEXT: Size: 0x3C
MACHO-ARM-NEXT: Offset: 664
MACHO-ARM-NEXT: Alignment: 2
MACHO-ARM-NEXT: RelocationOffset: 0x2E0
MACHO-ARM-NEXT: RelocationCount: 9
MACHO-ARM-NEXT: Type: 0x0
MACHO-ARM-NEXT: Attributes [ (0x800004)
MACHO-ARM-NEXT: PureInstructions (0x800000)
MACHO-ARM-NEXT: SomeInstructions (0x4)
MACHO-ARM-NEXT: ]
MACHO-ARM-NEXT: Reserved1: 0x0
MACHO-ARM-NEXT: Reserved2: 0x0
MACHO-ARM-NEXT: }
MACHO-ARM-NEXT: Section {
MACHO-ARM-NEXT: Index: 1
MACHO-ARM-NEXT: Name: __textcoal_nt (5F 5F 74 65 78 74 63 6F 61 6C 5F 6E 74 00 00 00)
MACHO-ARM-NEXT: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
MACHO-ARM-NEXT: Address: 0x3C
MACHO-ARM-NEXT: Size: 0x0
MACHO-ARM-NEXT: Offset: 724
MACHO-ARM-NEXT: Alignment: 0
MACHO-ARM-NEXT: RelocationOffset: 0x0
MACHO-ARM-NEXT: RelocationCount: 0
MACHO-ARM-NEXT: Type: 0xB
MACHO-ARM-NEXT: Attributes [ (0x800000)
MACHO-ARM-NEXT: PureInstructions (0x800000)
MACHO-ARM-NEXT: ]
MACHO-ARM-NEXT: Reserved1: 0x0
MACHO-ARM-NEXT: Reserved2: 0x0
MACHO-ARM-NEXT: }
MACHO-ARM-NEXT: Section {
MACHO-ARM-NEXT: Index: 2
MACHO-ARM-NEXT: Name: __const_coal (5F 5F 63 6F 6E 73 74 5F 63 6F 61 6C 00 00 00 00)
MACHO-ARM-NEXT: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
MACHO-ARM-NEXT: Address: 0x3C
MACHO-ARM-NEXT: Size: 0x0
MACHO-ARM-NEXT: Offset: 724
MACHO-ARM-NEXT: Alignment: 0
MACHO-ARM-NEXT: RelocationOffset: 0x0
MACHO-ARM-NEXT: RelocationCount: 0
MACHO-ARM-NEXT: Type: 0xB
MACHO-ARM-NEXT: Attributes [ (0x0)
MACHO-ARM-NEXT: ]
MACHO-ARM-NEXT: Reserved1: 0x0
MACHO-ARM-NEXT: Reserved2: 0x0
MACHO-ARM-NEXT: }
MACHO-ARM-NEXT: Section {
MACHO-ARM-NEXT: Index: 3
MACHO-ARM-NEXT: Name: __picsymbolstub4 (5F 5F 70 69 63 73 79 6D 62 6F 6C 73 74 75 62 34)
MACHO-ARM-NEXT: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
MACHO-ARM-NEXT: Address: 0x3C
MACHO-ARM-NEXT: Size: 0x0
MACHO-ARM-NEXT: Offset: 724
MACHO-ARM-NEXT: Alignment: 0
MACHO-ARM-NEXT: RelocationOffset: 0x0
MACHO-ARM-NEXT: RelocationCount: 0
MACHO-ARM-NEXT: Type: 0x8
MACHO-ARM-NEXT: Attributes [ (0x0)
MACHO-ARM-NEXT: ]
MACHO-ARM-NEXT: Reserved1: 0x0
MACHO-ARM-NEXT: Reserved2: 0x10
MACHO-ARM-NEXT: }
MACHO-ARM-NEXT: Section {
MACHO-ARM-NEXT: Index: 4
MACHO-ARM-NEXT: Name: __StaticInit (5F 5F 53 74 61 74 69 63 49 6E 69 74 00 00 00 00)
MACHO-ARM-NEXT: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
MACHO-ARM-NEXT: Address: 0x3C
MACHO-ARM-NEXT: Size: 0x0
MACHO-ARM-NEXT: Offset: 724
MACHO-ARM-NEXT: Alignment: 0
MACHO-ARM-NEXT: RelocationOffset: 0x0
MACHO-ARM-NEXT: RelocationCount: 0
MACHO-ARM-NEXT: Type: 0x0
MACHO-ARM-NEXT: Attributes [ (0x800000)
MACHO-ARM-NEXT: PureInstructions (0x800000)
MACHO-ARM-NEXT: ]
MACHO-ARM-NEXT: Reserved1: 0x0
MACHO-ARM-NEXT: Reserved2: 0x0
MACHO-ARM-NEXT: }
MACHO-ARM-NEXT: Section {
MACHO-ARM-NEXT: Index: 5
MACHO-ARM-NEXT: Name: __data (5F 5F 64 61 74 61 00 00 00 00 00 00 00 00 00 00)
MACHO-ARM-NEXT: Segment: __DATA (5F 5F 44 41 54 41 00 00 00 00 00 00 00 00 00 00)
MACHO-ARM-NEXT: Address: 0x3C
MACHO-ARM-NEXT: Size: 0x4
MACHO-ARM-NEXT: Offset: 724
MACHO-ARM-NEXT: Alignment: 2
MACHO-ARM-NEXT: RelocationOffset: 0x0
MACHO-ARM-NEXT: RelocationCount: 0
MACHO-ARM-NEXT: Type: 0x0
MACHO-ARM-NEXT: Attributes [ (0x0)
MACHO-ARM-NEXT: ]
MACHO-ARM-NEXT: Reserved1: 0x0
MACHO-ARM-NEXT: Reserved2: 0x0
MACHO-ARM-NEXT: }
MACHO-ARM-NEXT: Section {
MACHO-ARM-NEXT: Index: 6
MACHO-ARM-NEXT: Name: __nl_symbol_ptr (5F 5F 6E 6C 5F 73 79 6D 62 6F 6C 5F 70 74 72 00)
MACHO-ARM-NEXT: Segment: __DATA (5F 5F 44 41 54 41 00 00 00 00 00 00 00 00 00 00)
MACHO-ARM-NEXT: Address: 0x40
MACHO-ARM-NEXT: Size: 0x8
MACHO-ARM-NEXT: Offset: 728
MACHO-ARM-NEXT: Alignment: 2
MACHO-ARM-NEXT: RelocationOffset: 0x0
MACHO-ARM-NEXT: RelocationCount: 0
MACHO-ARM-NEXT: Type: 0x6
MACHO-ARM-NEXT: Attributes [ (0x0)
MACHO-ARM-NEXT: ]
MACHO-ARM-NEXT: Reserved1: 0x0
MACHO-ARM-NEXT: Reserved2: 0x0
MACHO-ARM-NEXT: }
MACHO-ARM-NEXT:]
WASM: Sections [
WASM-NEXT: Section {
WASM-NEXT: Type: TYPE (0x1)
WASM-NEXT: Size: 14
WASM-NEXT: Offset: 8
WASM-NEXT: }
WASM-NEXT: Section {
WASM-NEXT: Type: IMPORT (0x2)
WASM-NEXT: Size: 93
WASM-NEXT: Offset: 28
WASM-NEXT: }
WASM-NEXT: Section {
WASM-NEXT: Type: FUNCTION (0x3)
WASM-NEXT: Size: 2
WASM-NEXT: Offset: 127
WASM-NEXT: }
WASM-NEXT: Section {
WASM-NEXT: Type: CODE (0xA)
WASM-NEXT: Size: 25
WASM-NEXT: Offset: 135
WASM-NEXT: }
WASM-NEXT: Section {
WASM-NEXT: Type: DATA (0xB)
WASM-NEXT: Size: 19
WASM-NEXT: Offset: 166
WASM-NEXT: Segments [
WASM-NEXT: Segment {
WASM-NEXT: Name: .rodata..L.str
WASM-NEXT: Size: 13
WASM-NEXT: Offset: 0
WASM-NEXT: }
WASM-NEXT: ]
WASM-NEXT: }
WASM-NEXT: Section {
WASM-NEXT: Type: CUSTOM (0x0)
WASM-NEXT: Size: 61
WASM-NEXT: Offset: 191
WASM-NEXT: Name: linking
WASM-NEXT: }
WASM-NEXT: Section {
WASM-NEXT: Type: CUSTOM (0x0)
WASM-NEXT: Size: 12
WASM-NEXT: Offset: 266
WASM-NEXT: Name: reloc.CODE
WASM-NEXT: }
WASM-NEXT: ]