[DynInst_API:] [dyninst/dyninst] 1546ea: Fix EM_AMDGPU to use RELA as Region Type


Date: Mon, 10 Jul 2023 23:36:26 -0700
From: bbiiggppiigg <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] 1546ea: Fix EM_AMDGPU to use RELA as Region Type
  Branch: refs/heads/fix_amdgpu_rela
  Home:   https://github.com/dyninst/dyninst
  Commit: 1546ea69f2f60780d070319664d5e4a2a4b81df4
      https://github.com/dyninst/dyninst/commit/1546ea69f2f60780d070319664d5e4a2a4b81df4
  Author: wuxx1279 <bbiiggppiigg@xxxxxxxxx>
  Date:   2023-07-11 (Tue, 11 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] 1546ea: Fix EM_AMDGPU to use RELA as Region Type, bbiiggppiigg <=