## Test that llvm-readobj/llvm-readelf shows proper relocation type ## names and values for AMDGPU target. # RUN: yaml2obj %s -o %t # RUN: llvm-readobj -r %t | FileCheck %s # CHECK: Section ({{.*}}) .rela.text { # CHECK-NEXT: 0x0 R_AMDGPU_NONE - 0x0 # CHECK-NEXT: 0x0 R_AMDGPU_ABS32_LO - 0x0 # CHECK-NEXT: 0x0 R_AMDGPU_ABS32_HI - 0x0 # CHECK-NEXT: 0x0 R_AMDGPU_ABS64 - 0x0 # CHECK-NEXT: 0x0 R_AMDGPU_REL32 - 0x0 # CHECK-NEXT: 0x0 R_AMDGPU_REL64 - 0x0 # CHECK-NEXT: 0x0 R_AMDGPU_ABS32 - 0x0 # CHECK-NEXT: 0x0 R_AMDGPU_GOTPCREL - 0x0 # CHECK-NEXT: 0x0 R_AMDGPU_GOTPCREL32_LO - 0x0 # CHECK-NEXT: 0x0 R_AMDGPU_GOTPCREL32_HI - 0x0 # CHECK-NEXT: 0x0 R_AMDGPU_REL32_LO - 0x0 # CHECK-NEXT: 0x0 R_AMDGPU_REL32_HI - 0x0 # CHECK-NEXT: 0x0 R_AMDGPU_RELATIVE64 - 0x0 # CHECK-NEXT: 0x0 R_AMDGPU_REL16 - 0x0 # CHECK-NEXT: } !ELF FileHeader: Class: ELFCLASS64 Data: ELFDATA2LSB Type: ET_REL Machine: EM_AMDGPU Sections: - Name: .rela.text Type: SHT_RELA Relocations: - Type: R_AMDGPU_NONE - Type: R_AMDGPU_ABS32_LO - Type: R_AMDGPU_ABS32_HI - Type: R_AMDGPU_ABS64 - Type: R_AMDGPU_REL32 - Type: R_AMDGPU_REL64 - Type: R_AMDGPU_ABS32 - Type: R_AMDGPU_GOTPCREL - Type: R_AMDGPU_GOTPCREL32_LO - Type: R_AMDGPU_GOTPCREL32_HI - Type: R_AMDGPU_REL32_LO - Type: R_AMDGPU_REL32_HI - Type: R_AMDGPU_RELATIVE64 - Type: R_AMDGPU_REL16