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
# RUN: yaml2obj %s > %t
# RUN: llvm-readobj -r %t | FileCheck %s

# CHECK: Relocations [
# CHECK:   Section (2) .rela.text {
# CHECK:     0x0  R_AMDGPU_NONE           - 0x0
# CHECK:     0x2  R_AMDGPU_ABS32_LO       - 0x0
# CHECK:     0x4  R_AMDGPU_ABS32_HI       - 0x0
# CHECK:     0x6  R_AMDGPU_ABS64          - 0x0
# CHECK:     0x8  R_AMDGPU_REL32          - 0x0
# CHECK:     0x10 R_AMDGPU_REL64          - 0x0
# CHECK:     0x12 R_AMDGPU_ABS32          - 0x0
# CHECK:     0x14 R_AMDGPU_GOTPCREL       - 0x0
# CHECK:     0x16 R_AMDGPU_GOTPCREL32_LO  - 0x0
# CHECK:     0x18 R_AMDGPU_GOTPCREL32_HI  - 0x0
# CHECK:     0x20 R_AMDGPU_REL32_LO       - 0x0
# CHECK:     0x22 R_AMDGPU_REL32_HI       - 0x0
# CHECK:     0x24 R_AMDGPU_RELATIVE64     - 0x0
# CHECK:   }
# CHECK: ]

!ELF
FileHeader:
  Class:           ELFCLASS64
  Data:            ELFDATA2LSB
  Type:            ET_REL
  Machine:         EM_AMDGPU
Sections:
  - Type:            SHT_PROGBITS
    Name:            .text
    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
    AddressAlign:    0x08
    Content:         0000000000000000
  - Type:            SHT_RELA
    Name:            .rela.text
    Link:            .symtab
    Info:            .text
    AddressAlign:    0x08
    Relocations:
      - Offset:          0x0
        Type:            R_AMDGPU_NONE
      - Offset:          0x2
        Type:            R_AMDGPU_ABS32_LO
      - Offset:          0x4
        Type:            R_AMDGPU_ABS32_HI
      - Offset:          0x6
        Type:            R_AMDGPU_ABS64
      - Offset:          0x8
        Type:            R_AMDGPU_REL32
      - Offset:          0x10
        Type:            R_AMDGPU_REL64
      - Offset:          0x12
        Type:            R_AMDGPU_ABS32
      - Offset:          0x14
        Type:            R_AMDGPU_GOTPCREL
      - Offset:          0x16
        Type:            R_AMDGPU_GOTPCREL32_LO
      - Offset:          0x18
        Type:            R_AMDGPU_GOTPCREL32_HI
      - Offset:          0x20
        Type:            R_AMDGPU_REL32_LO
      - Offset:          0x22
        Type:            R_AMDGPU_REL32_HI
      - Offset:          0x24
        Type:            R_AMDGPU_RELATIVE64

Symbols:
  - Name:            .text
    Type:            STT_SECTION
    Section:         .text
  - Name:            main
    Type:            STT_FUNC
    Section:         .text
    Size:            0x08
    Binding:         STB_GLOBAL