88 lines · plain
1## This is a general test for the --section-headers option.2 3# RUN: yaml2obj %s -o %t14# RUN: llvm-readobj --section-headers %t1 | \5# RUN: FileCheck --strict-whitespace --match-full-lines --check-prefixes=SEC,SEC32 %s6 7# RUN: yaml2obj -DMAGIC=0x01F7 %s -o %t28# RUN: llvm-readobj --section-headers %t2 | \9# RUN: FileCheck --strict-whitespace --match-full-lines --check-prefixes=SEC,SEC64 %s10 11# SEC32:Format: aixcoff-rs600012# SEC64:Format: aix5coff64-rs600013# SEC32-NEXT:Arch: powerpc14# SEC64-NEXT:Arch: powerpc6415# SEC32-NEXT:AddressSize: 32bit16# SEC64-NEXT:AddressSize: 64bit17# SEC-NEXT:Sections [18# SEC-NEXT: Section {19# SEC-NEXT: Index: 120# SEC-NEXT: Name: .text21# SEC-NEXT: PhysicalAddress: 0x022# SEC-NEXT: VirtualAddress: 0x023# SEC-NEXT: Size: 0x224# SEC32-NEXT: RawDataOffset: 0xB425# SEC64-NEXT: RawDataOffset: 0x13826# SEC-NEXT: RelocationPointer: 0x027# SEC-NEXT: LineNumberPointer: 0x028# SEC-NEXT: NumberOfRelocations: 029# SEC-NEXT: NumberOfLineNumbers: 030# SEC-NEXT: Type: STYP_TEXT (0x20)31# SEC-NEXT: }32# SEC-NEXT: Section {33# SEC-NEXT: Index: 234# SEC-NEXT: Name: .data35# SEC-NEXT: PhysicalAddress: 0x036# SEC-NEXT: VirtualAddress: 0x037# SEC-NEXT: Size: 0x238# SEC32-NEXT: RawDataOffset: 0xB839# SEC64-NEXT: RawDataOffset: 0x13C40# SEC32-NEXT: RelocationPointer: 0xC441# SEC64-NEXT: RelocationPointer: 0x14842# SEC-NEXT: LineNumberPointer: 0x043# SEC-NEXT: NumberOfRelocations: 144# SEC-NEXT: NumberOfLineNumbers: 045# SEC-NEXT: Type: STYP_DATA (0x40)46# SEC-NEXT: }47# SEC-NEXT: Section {48# SEC-NEXT: Index: 349# SEC-NEXT: Name: .dwabrev50# SEC: Type: STYP_DWARF (0x10)51# SEC-NEXT: DWARFSubType: SSUBTYP_DWABREV (0x60000)52# SEC-NEXT: }53# SEC-NEXT: Section {54# SEC-NEXT: Index: 455# SEC-NEXT: Name: .dwinfo56# SEC: Type: STYP_DWARF (0x10)57# SEC-NEXT: DWARFSubType: SSUBTYP_DWINFO (0x10000)58# SEC-NEXT: }59# SEC-NEXT:]60 61--- !XCOFF62FileHeader:63 MagicNumber: [[MAGIC=0x1DF]]64Sections:65 - Name: .text66 Flags: [ STYP_TEXT ]67 SectionData: "1234"68 - Name: .data69 Flags: [ STYP_DATA ]70 SectionData: "5678"71 Relocations:72 - Address: 0x8073 Symbol: 0x2174 Info: 0x1F75 Type: 0x076 - Name: .dwabrev77 Address: 0x078 Size: 0x479 Flags: [ STYP_DWARF ]80 DWARFSectionSubtype: SSUBTYP_DWABREV81 SectionData: 0111012582 - Name: .dwinfo83 Address: 0x084 Size: 0x485 Flags: [ STYP_DWARF ]86 DWARFSectionSubtype: SSUBTYP_DWINFO87 SectionData: 0000008088