1# RUN: llvm-readobj --sections %p/Inputs/reloc-overflow.o | \
2# RUN: FileCheck --check-prefix=SECOVERFLOW %s
3# SECOVERFLOW:      File: {{.*}}reloc-overflow.o
4# SECOVERFLOW-NEXT: Format: aixcoff-rs6000
5# SECOVERFLOW-NEXT: Arch: powerpc
6# SECOVERFLOW-NEXT: AddressSize: 32bit
7# SECOVERFLOW-NEXT: Sections [
8# SECOVERFLOW-NEXT:   Section {
9# SECOVERFLOW-NEXT:     Index: 1
10# SECOVERFLOW-NEXT:     Name: .text
11# SECOVERFLOW-NEXT:     PhysicalAddress: 0x0
12# SECOVERFLOW-NEXT:     VirtualAddress: 0x0
13# SECOVERFLOW-NEXT:     Size: 0x38
14# SECOVERFLOW-NEXT:     RawDataOffset: 0x8C
15# SECOVERFLOW-NEXT:     RelocationPointer: 0x0
16# SECOVERFLOW-NEXT:     LineNumberPointer: 0x0
17# SECOVERFLOW-NEXT:     NumberOfRelocations: 0
18# SECOVERFLOW-NEXT:     NumberOfLineNumbers: 0
19# SECOVERFLOW-NEXT:     Type: STYP_TEXT (0x20)
20# SECOVERFLOW-NEXT:   }
21# SECOVERFLOW-NEXT:   Section {
22# SECOVERFLOW-NEXT:     Index: 2
23# SECOVERFLOW-NEXT:     Name: .data
24# SECOVERFLOW-NEXT:     PhysicalAddress: 0x38
25# SECOVERFLOW-NEXT:     VirtualAddress: 0x38
26# SECOVERFLOW-NEXT:     Size: 0x1C
27# SECOVERFLOW-NEXT:     RawDataOffset: 0xC4
28# SECOVERFLOW-NEXT:     RelocationPointer: 0xE0
29# SECOVERFLOW-NEXT:     LineNumberPointer: 0x0
30# SECOVERFLOW-NEXT:     NumberOfRelocations: 65535
31# SECOVERFLOW-NEXT:     NumberOfLineNumbers: 65535
32# SECOVERFLOW-NEXT:     Type: STYP_DATA (0x40)
33# SECOVERFLOW-NEXT:   }
34# SECOVERFLOW-NEXT:   Section {
35# SECOVERFLOW-NEXT:     Index: 3
36# SECOVERFLOW-NEXT:     Name: .ovrflo
37# SECOVERFLOW-NEXT:     NumberOfRelocations: 3
38# SECOVERFLOW-NEXT:     NumberOfLineNumbers: 3
39# SECOVERFLOW-NEXT:     Size: 0x0
40# SECOVERFLOW-NEXT:     RawDataOffset: 0x0
41# SECOVERFLOW-NEXT:     RelocationPointer: 0xE0
42# SECOVERFLOW-NEXT:     LineNumberPointer: 0x0
43# SECOVERFLOW-NEXT:     IndexOfSectionOverflowed: 2
44# SECOVERFLOW-NEXT:     IndexOfSectionOverflowed: 2
45# SECOVERFLOW-NEXT:     Type: STYP_OVRFLO (0x8000)
46# SECOVERFLOW-NEXT:   }
47# SECOVERFLOW-NEXT: ]
48