brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.7 KiB · 23b7f08 Raw
87 lines · yaml
1# RUN: yaml2obj %s -o %t2# RUN: llvm-dwarfdump -i %t | FileCheck %s3 4# Test REL relocation handling for AMDGPU5 6# CHECK: DW_TAG_compile_unit7# CHECK: DW_AT_producer ("dxc")8# CHECK: DW_AT_name (".\\example.hlsl")9# CHECK: DW_AT_str_offsets_base (0x00000008)10 11--- !ELF12FileHeader:13  Class:           ELFCLASS6414  Data:            ELFDATA2LSB15  OSABI:           ELFOSABI_AMDGPU_PAL16  Type:            ET_REL17  Machine:         EM_AMDGPU18  Flags:           [ EF_AMDGPU_MACH_AMDGCN_GFX1201 ]19  SectionHeaderStringTable: .strtab20Sections:21  - Name:            .debug_abbrev22    Type:            SHT_PROGBITS23    AddressAlign:    0x124    Content:         01110125251305032572171017110B120673178C011700000025  - Name:            .debug_info26    Type:            SHT_PROGBITS27    AddressAlign:    0x128    Content:         23000000050001080000000001000400010800000000000000005C000000080000000C0000000029  - Name:            .debug_str_offsets30    Type:            SHT_PROGBITS31    AddressAlign:    0x132    Content:         0C00000005000000000000000400000033  - Name:            .rel.debug_info34    Type:            SHT_REL35    Flags:           [ SHF_INFO_LINK ]36    Link:            .symtab37    AddressAlign:    0x838    Info:            .debug_info39    Relocations:40      - Offset:          0x841        Symbol:          .debug_abbrev42        Type:            R_AMDGPU_ABS3243      - Offset:          0x1144        Symbol:          .debug_str_offsets45        Type:            R_AMDGPU_ABS3246  - Name:            .rel.debug_str_offsets47    Type:            SHT_REL48    Flags:           [ SHF_INFO_LINK ]49    Link:            .symtab50    AddressAlign:    0x851    Info:            .debug_str_offsets52    Relocations:53      - Offset:          0x854        Symbol:          .debug_str55        Type:            R_AMDGPU_ABS3256      - Offset:          0xC57        Symbol:          .debug_str58        Type:            R_AMDGPU_ABS3259  - Type:            SectionHeaderTable60    Sections:61      - Name:            .strtab62      - Name:            .debug_abbrev63      - Name:            .debug_info64      - Name:            .rel.debug_info65      - Name:            .debug_str_offsets66      - Name:            .rel.debug_str_offsets67      - Name:            .debug_str68      - Name:            .symtab69Symbols:70  - Name:            .debug_abbrev71    Type:            STT_SECTION72    Section:         .debug_abbrev73  - Name:            .debug_info74    Type:            STT_SECTION75    Section:         .debug_info76  - Name:            .debug_str_offsets77    Type:            STT_SECTION78    Section:         .debug_str_offsets79  - Name:            .debug_str80    Type:            STT_SECTION81    Section:         .debug_str82DWARF:83  debug_str:84    - 'dxc'85    - '.\example.hlsl'86...87