2016-06-28 03:53:53 +08:00
|
|
|
# RUN: yaml2obj %s > %t
|
2016-06-18 06:38:08 +08:00
|
|
|
# RUN: llvm-readobj -r %t | FileCheck %s
|
|
|
|
|
|
|
|
# CHECK: Relocations [
|
|
|
|
# CHECK: Section (2) .rela.text {
|
2016-10-14 12:03:49 +08:00
|
|
|
# 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
|
2017-10-17 04:44:29 +08:00
|
|
|
# CHECK: 0x24 R_AMDGPU_RELATIVE64 - 0x0
|
2016-06-18 06:38:08 +08:00
|
|
|
# CHECK: }
|
|
|
|
# CHECK: ]
|
|
|
|
|
2016-06-28 03:53:53 +08:00
|
|
|
!ELF
|
2016-06-18 06:38:08 +08:00
|
|
|
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
|
2016-10-14 12:03:49 +08:00
|
|
|
Symbol: s0
|
2016-06-18 06:38:08 +08:00
|
|
|
Type: R_AMDGPU_NONE
|
2016-10-14 12:03:49 +08:00
|
|
|
- Offset: 0x2
|
|
|
|
Symbol: s1
|
2016-06-18 06:38:08 +08:00
|
|
|
Type: R_AMDGPU_ABS32_LO
|
2016-10-14 12:03:49 +08:00
|
|
|
- Offset: 0x4
|
|
|
|
Symbol: s2
|
2016-06-18 06:38:08 +08:00
|
|
|
Type: R_AMDGPU_ABS32_HI
|
2016-10-14 12:03:49 +08:00
|
|
|
- Offset: 0x6
|
|
|
|
Symbol: s3
|
2016-06-18 06:38:08 +08:00
|
|
|
Type: R_AMDGPU_ABS64
|
2016-10-14 12:03:49 +08:00
|
|
|
- Offset: 0x8
|
|
|
|
Symbol: s4
|
2016-06-18 06:38:08 +08:00
|
|
|
Type: R_AMDGPU_REL32
|
2016-10-14 12:03:49 +08:00
|
|
|
- Offset: 0x10
|
|
|
|
Symbol: s5
|
2016-06-18 06:38:08 +08:00
|
|
|
Type: R_AMDGPU_REL64
|
2016-10-14 12:03:49 +08:00
|
|
|
- Offset: 0x12
|
|
|
|
Symbol: s6
|
2016-06-18 06:38:08 +08:00
|
|
|
Type: R_AMDGPU_ABS32
|
2016-10-14 12:03:49 +08:00
|
|
|
- Offset: 0x14
|
|
|
|
Symbol: s7
|
|
|
|
Type: R_AMDGPU_GOTPCREL
|
|
|
|
- Offset: 0x16
|
|
|
|
Symbol: s8
|
|
|
|
Type: R_AMDGPU_GOTPCREL32_LO
|
|
|
|
- Offset: 0x18
|
|
|
|
Symbol: s9
|
|
|
|
Type: R_AMDGPU_GOTPCREL32_HI
|
|
|
|
- Offset: 0x20
|
|
|
|
Symbol: s10
|
|
|
|
Type: R_AMDGPU_REL32_LO
|
|
|
|
- Offset: 0x22
|
|
|
|
Symbol: s11
|
|
|
|
Type: R_AMDGPU_REL32_HI
|
2017-10-17 04:44:29 +08:00
|
|
|
- Offset: 0x24
|
|
|
|
Symbol: s12
|
|
|
|
Type: R_AMDGPU_RELATIVE64
|
2016-06-18 06:38:08 +08:00
|
|
|
|
|
|
|
Symbols:
|
|
|
|
Local:
|
|
|
|
- Name: .text
|
|
|
|
Type: STT_SECTION
|
|
|
|
Section: .text
|
|
|
|
|
|
|
|
Global:
|
|
|
|
- Name: main
|
|
|
|
Type: STT_FUNC
|
|
|
|
Section: .text
|
|
|
|
Size: 0x08
|