1# RUN: llvm-readobj --sections %p/Inputs/reloc-overflow.o | \ 2# RUN: FileCheck --check-prefix=SECOVERFLOW %s 3 4# RUN: llvm-readobj --relocs --expand-relocs %p/Inputs/reloc-overflow.o | \ 5# RUN: FileCheck --check-prefix=RELOCOVERFLOW %s 6 7# SECOVERFLOW: File: {{.*}}reloc-overflow.o 8# SECOVERFLOW-NEXT: Format: aixcoff-rs6000 9# SECOVERFLOW-NEXT: Arch: powerpc 10# SECOVERFLOW-NEXT: AddressSize: 32bit 11# SECOVERFLOW-NEXT: Sections [ 12# SECOVERFLOW-NEXT: Section { 13# SECOVERFLOW-NEXT: Index: 1 14# SECOVERFLOW-NEXT: Name: .text 15# SECOVERFLOW-NEXT: PhysicalAddress: 0x0 16# SECOVERFLOW-NEXT: VirtualAddress: 0x0 17# SECOVERFLOW-NEXT: Size: 0x38 18# SECOVERFLOW-NEXT: RawDataOffset: 0x8C 19# SECOVERFLOW-NEXT: RelocationPointer: 0x0 20# SECOVERFLOW-NEXT: LineNumberPointer: 0x0 21# SECOVERFLOW-NEXT: NumberOfRelocations: 0 22# SECOVERFLOW-NEXT: NumberOfLineNumbers: 0 23# SECOVERFLOW-NEXT: Type: STYP_TEXT (0x20) 24# SECOVERFLOW-NEXT: } 25# SECOVERFLOW-NEXT: Section { 26# SECOVERFLOW-NEXT: Index: 2 27# SECOVERFLOW-NEXT: Name: .data 28# SECOVERFLOW-NEXT: PhysicalAddress: 0x38 29# SECOVERFLOW-NEXT: VirtualAddress: 0x38 30# SECOVERFLOW-NEXT: Size: 0x1C 31# SECOVERFLOW-NEXT: RawDataOffset: 0xC4 32# SECOVERFLOW-NEXT: RelocationPointer: 0xE0 33# SECOVERFLOW-NEXT: LineNumberPointer: 0x0 34# SECOVERFLOW-NEXT: NumberOfRelocations: 65535 35# SECOVERFLOW-NEXT: NumberOfLineNumbers: 65535 36# SECOVERFLOW-NEXT: Type: STYP_DATA (0x40) 37# SECOVERFLOW-NEXT: } 38# SECOVERFLOW-NEXT: Section { 39# SECOVERFLOW-NEXT: Index: 3 40# SECOVERFLOW-NEXT: Name: .ovrflo 41# SECOVERFLOW-NEXT: NumberOfRelocations: 3 42# SECOVERFLOW-NEXT: NumberOfLineNumbers: 3 43# SECOVERFLOW-NEXT: Size: 0x0 44# SECOVERFLOW-NEXT: RawDataOffset: 0x0 45# SECOVERFLOW-NEXT: RelocationPointer: 0xE0 46# SECOVERFLOW-NEXT: LineNumberPointer: 0x0 47# SECOVERFLOW-NEXT: IndexOfSectionOverflowed: 2 48# SECOVERFLOW-NEXT: IndexOfSectionOverflowed: 2 49# 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: 0x38 57# RELOCOVERFLOW-NEXT: Symbol: .pb (4) 58# RELOCOVERFLOW-NEXT: IsSigned: No 59# RELOCOVERFLOW-NEXT: FixupBitValue: 0 60# RELOCOVERFLOW-NEXT: Length: 32 61# RELOCOVERFLOW-NEXT: Type: R_POS (0x0) 62# RELOCOVERFLOW-NEXT: } 63# RELOCOVERFLOW-NEXT: Relocation { 64# RELOCOVERFLOW-NEXT: Virtual Address: 0x3C 65# RELOCOVERFLOW-NEXT: Symbol: TOC (12) 66# RELOCOVERFLOW-NEXT: IsSigned: No 67# RELOCOVERFLOW-NEXT: FixupBitValue: 0 68# RELOCOVERFLOW-NEXT: Length: 32 69# RELOCOVERFLOW-NEXT: Type: R_POS (0x0) 70# RELOCOVERFLOW-NEXT: } 71# RELOCOVERFLOW-NEXT: Relocation { 72# RELOCOVERFLOW-NEXT: Virtual Address: 0x50 73# RELOCOVERFLOW-NEXT: Symbol: .text (2) 74# RELOCOVERFLOW-NEXT: IsSigned: No 75# RELOCOVERFLOW-NEXT: FixupBitValue: 0 76# RELOCOVERFLOW-NEXT: Length: 32 77# RELOCOVERFLOW-NEXT: Type: R_POS (0x0) 78# RELOCOVERFLOW-NEXT: } 79# RELOCOVERFLOW-NEXT: } 80# RELOCOVERFLOW-NEXT: ] 81