81 lines · plain
1# RUN: llvm-readobj --sections %p/Inputs/reloc-overflow.o | \2# RUN: FileCheck --check-prefix=SECOVERFLOW %s3 4# RUN: llvm-readobj --relocs --expand-relocs %p/Inputs/reloc-overflow.o | \5# RUN: FileCheck --check-prefix=RELOCOVERFLOW %s6 7# SECOVERFLOW: File: {{.*}}reloc-overflow.o8# SECOVERFLOW-NEXT: Format: aixcoff-rs60009# SECOVERFLOW-NEXT: Arch: powerpc10# SECOVERFLOW-NEXT: AddressSize: 32bit11# SECOVERFLOW-NEXT: Sections [12# SECOVERFLOW-NEXT: Section {13# SECOVERFLOW-NEXT: Index: 114# SECOVERFLOW-NEXT: Name: .text15# SECOVERFLOW-NEXT: PhysicalAddress: 0x016# SECOVERFLOW-NEXT: VirtualAddress: 0x017# SECOVERFLOW-NEXT: Size: 0x3818# SECOVERFLOW-NEXT: RawDataOffset: 0x8C19# SECOVERFLOW-NEXT: RelocationPointer: 0x020# SECOVERFLOW-NEXT: LineNumberPointer: 0x021# SECOVERFLOW-NEXT: NumberOfRelocations: 022# SECOVERFLOW-NEXT: NumberOfLineNumbers: 023# SECOVERFLOW-NEXT: Type: STYP_TEXT (0x20)24# SECOVERFLOW-NEXT: }25# SECOVERFLOW-NEXT: Section {26# SECOVERFLOW-NEXT: Index: 227# SECOVERFLOW-NEXT: Name: .data28# SECOVERFLOW-NEXT: PhysicalAddress: 0x3829# SECOVERFLOW-NEXT: VirtualAddress: 0x3830# SECOVERFLOW-NEXT: Size: 0x1C31# SECOVERFLOW-NEXT: RawDataOffset: 0xC432# SECOVERFLOW-NEXT: RelocationPointer: 0xE033# SECOVERFLOW-NEXT: LineNumberPointer: 0x034# SECOVERFLOW-NEXT: NumberOfRelocations: 6553535# SECOVERFLOW-NEXT: NumberOfLineNumbers: 6553536# SECOVERFLOW-NEXT: Type: STYP_DATA (0x40)37# SECOVERFLOW-NEXT: }38# SECOVERFLOW-NEXT: Section {39# SECOVERFLOW-NEXT: Index: 340# SECOVERFLOW-NEXT: Name: .ovrflo41# SECOVERFLOW-NEXT: NumberOfRelocations: 342# SECOVERFLOW-NEXT: NumberOfLineNumbers: 343# SECOVERFLOW-NEXT: Size: 0x044# SECOVERFLOW-NEXT: RawDataOffset: 0x045# SECOVERFLOW-NEXT: RelocationPointer: 0xE046# SECOVERFLOW-NEXT: LineNumberPointer: 0x047# SECOVERFLOW-NEXT: IndexOfSectionOverflowed: 248# SECOVERFLOW-NEXT: IndexOfSectionOverflowed: 249# SECOVERFLOW-NEXT: Type: STYP_OVRFLO (0x8000)50# SECOVERFLOW-NEXT: }51# SECOVERFLOW-NEXT: ]52 53# RELOCOVERFLOW: Relocations [54# RELOCOVERFLOW-NEXT: Section (index: 2) .data {55# RELOCOVERFLOW-NEXT: Relocation {56# RELOCOVERFLOW-NEXT: Virtual Address: 0x3857# RELOCOVERFLOW-NEXT: Symbol: .pb (4)58# RELOCOVERFLOW-NEXT: IsSigned: No59# RELOCOVERFLOW-NEXT: FixupBitValue: 060# RELOCOVERFLOW-NEXT: Length: 3261# RELOCOVERFLOW-NEXT: Type: R_POS (0x0)62# RELOCOVERFLOW-NEXT: }63# RELOCOVERFLOW-NEXT: Relocation {64# RELOCOVERFLOW-NEXT: Virtual Address: 0x3C65# RELOCOVERFLOW-NEXT: Symbol: TOC (12)66# RELOCOVERFLOW-NEXT: IsSigned: No67# RELOCOVERFLOW-NEXT: FixupBitValue: 068# RELOCOVERFLOW-NEXT: Length: 3269# RELOCOVERFLOW-NEXT: Type: R_POS (0x0)70# RELOCOVERFLOW-NEXT: }71# RELOCOVERFLOW-NEXT: Relocation {72# RELOCOVERFLOW-NEXT: Virtual Address: 0x5073# RELOCOVERFLOW-NEXT: Symbol: .text (2)74# RELOCOVERFLOW-NEXT: IsSigned: No75# RELOCOVERFLOW-NEXT: FixupBitValue: 076# RELOCOVERFLOW-NEXT: Length: 3277# RELOCOVERFLOW-NEXT: Type: R_POS (0x0)78# RELOCOVERFLOW-NEXT: }79# RELOCOVERFLOW-NEXT: }80# RELOCOVERFLOW-NEXT: ]81