[DynInst_API:] [dyninst/dyninst] 4c86fb: Fix EM_AMDGPU to use RELA as Region Type


Date: Tue, 11 Jul 2023 18:15:43 -0700
From: bbiiggppiigg <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] 4c86fb: Fix EM_AMDGPU to use RELA as Region Type
  Branch: refs/heads/fix_amdgpu_rela
  Home:   https://github.com/dyninst/dyninst
  Commit: 4c86fb98550962c84c951b0cf1daf7303ebf7458
      https://github.com/dyninst/dyninst/commit/4c86fb98550962c84c951b0cf1daf7303ebf7458
  Author: wuxx1279 <bbiiggppiigg@xxxxxxxxx>
  Date:   2023-07-12 (Wed, 12 Jul 2023)

  Changed paths:
    M symtabAPI/src/Object-elf.C

  Log Message:
  -----------
  Fix EM_AMDGPU to use RELA as Region Type

According to the llvm page
https://llvm.org/docs/AMDGPUUsage.html#relocation-records
AMDGPU backend generates Elf64_Rela records.

This fix added the case for EM_AMDGPU to
static Region::RegionType getRelTypeByElfMachine
such that it uses RELA instead of the default REL type.


[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] 4c86fb: Fix EM_AMDGPU to use RELA as Region Type, bbiiggppiigg <=