reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53
   54
   55
   56
   57
   58
   59
   60
   61
   62
   63
   64
   65
   66
   67
   68
   69
   70
   71
   72
   73
   74
   75
   76
   77
   78
   79
   80
# RUN: llvm-readobj --sections %p/Inputs/xcoff-reloc-overflow.o | \
# RUN: FileCheck --check-prefix=SECOVERFLOW %s

# RUN: llvm-readobj --relocs --expand-relocs %p/Inputs/xcoff-reloc-overflow.o | \
# RUN: FileCheck --check-prefix=RELOCOVERFLOW %s

# SECOVERFLOW:      File: {{.*}}xcoff-reloc-overflow.o
# SECOVERFLOW-NEXT: Format: aixcoff-rs6000
# SECOVERFLOW-NEXT: Arch: powerpc
# SECOVERFLOW-NEXT: AddressSize: 32bit
# SECOVERFLOW-NEXT: Sections [
# SECOVERFLOW-NEXT:   Section {
# SECOVERFLOW-NEXT:     Index: 1
# SECOVERFLOW-NEXT:     Name: .text
# SECOVERFLOW-NEXT:     PhysicalAddress: 0x0
# SECOVERFLOW-NEXT:     VirtualAddress: 0x0
# SECOVERFLOW-NEXT:     Size: 0x38
# SECOVERFLOW-NEXT:     RawDataOffset: 0x8C
# SECOVERFLOW-NEXT:     RelocationPointer: 0x0
# SECOVERFLOW-NEXT:     LineNumberPointer: 0x0
# SECOVERFLOW-NEXT:     NumberOfRelocations: 0
# SECOVERFLOW-NEXT:     NumberOfLineNumbers: 0
# SECOVERFLOW-NEXT:     Type: STYP_TEXT (0x20)
# SECOVERFLOW-NEXT:   }
# SECOVERFLOW-NEXT:   Section {
# SECOVERFLOW-NEXT:     Index: 2
# SECOVERFLOW-NEXT:     Name: .data
# SECOVERFLOW-NEXT:     PhysicalAddress: 0x38
# SECOVERFLOW-NEXT:     VirtualAddress: 0x38
# SECOVERFLOW-NEXT:     Size: 0x1C
# SECOVERFLOW-NEXT:     RawDataOffset: 0xC4
# SECOVERFLOW-NEXT:     RelocationPointer: 0xE0
# SECOVERFLOW-NEXT:     LineNumberPointer: 0x0
# SECOVERFLOW-NEXT:     NumberOfRelocations: 65535
# SECOVERFLOW-NEXT:     NumberOfLineNumbers: 65535
# SECOVERFLOW-NEXT:     Type: STYP_DATA (0x40)
# SECOVERFLOW-NEXT:   }
# SECOVERFLOW-NEXT:   Section {
# SECOVERFLOW-NEXT:     Index: 3
# SECOVERFLOW-NEXT:     Name: .ovrflo
# SECOVERFLOW-NEXT:     NumberOfRelocations: 3
# SECOVERFLOW-NEXT:     NumberOfLineNumbers: 3
# SECOVERFLOW-NEXT:     Size: 0x0
# SECOVERFLOW-NEXT:     RawDataOffset: 0x0
# SECOVERFLOW-NEXT:     RelocationPointer: 0xE0
# SECOVERFLOW-NEXT:     LineNumberPointer: 0x0
# SECOVERFLOW-NEXT:     IndexOfSectionOverflowed: 2
# SECOVERFLOW-NEXT:     IndexOfSectionOverflowed: 2
# SECOVERFLOW-NEXT:     Type: STYP_OVRFLO (0x8000)
# SECOVERFLOW-NEXT:   }
# SECOVERFLOW-NEXT: ]

# RELOCOVERFLOW: Relocations [
# RELOCOVERFLOW-NEXT:   Section (index: 2) .data {
# RELOCOVERFLOW-NEXT:   Relocation {
# RELOCOVERFLOW-NEXT:     Virtual Address: 0x38
# RELOCOVERFLOW-NEXT:     Symbol: .pb (4)
# RELOCOVERFLOW-NEXT:     IsSigned: No
# RELOCOVERFLOW-NEXT:     FixupBitValue: 0
# RELOCOVERFLOW-NEXT:     Length: 32
# RELOCOVERFLOW-NEXT:     Type: R_POS (0x0)
# RELOCOVERFLOW-NEXT:   }
# RELOCOVERFLOW-NEXT:   Relocation {
# RELOCOVERFLOW-NEXT:     Virtual Address: 0x3C
# RELOCOVERFLOW-NEXT:     Symbol: TOC (12)
# RELOCOVERFLOW-NEXT:     IsSigned: No
# RELOCOVERFLOW-NEXT:     FixupBitValue: 0
# RELOCOVERFLOW-NEXT:     Length: 32
# RELOCOVERFLOW-NEXT:     Type: R_POS (0x0)
# RELOCOVERFLOW-NEXT:   }
# RELOCOVERFLOW-NEXT:   Relocation {
# RELOCOVERFLOW-NEXT:     Virtual Address: 0x50
# RELOCOVERFLOW-NEXT:     Symbol: .text (2)
# RELOCOVERFLOW-NEXT:     IsSigned: No
# RELOCOVERFLOW-NEXT:     FixupBitValue: 0
# RELOCOVERFLOW-NEXT:     Length: 32
# RELOCOVERFLOW-NEXT:     Type: R_POS (0x0)
# RELOCOVERFLOW-NEXT:   }
# RELOCOVERFLOW-NEXT: }
# RELOCOVERFLOW-NEXT: ]