[DynInst_API:] [dyninst/dyninst] d82356: Fix EM_AMDGPU to use RELA as Region Type (#1444)


Date: Mon, 24 Jul 2023 12:02:57 -0700
From: bbiiggppiigg <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] d82356: Fix EM_AMDGPU to use RELA as Region Type (#1444)
  Branch: refs/heads/master
  Home:   https://github.com/dyninst/dyninst
  Commit: d82356b795db373fd66b098a8ba6073a07ba6089
      https://github.com/dyninst/dyninst/commit/d82356b795db373fd66b098a8ba6073a07ba6089
  Author: bbiiggppiigg <bbiiggppiigg@xxxxxxxxx>
  Date:   2023-07-24 (Mon, 24 Jul 2023)

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

  Log Message:
  -----------
  Fix EM_AMDGPU to use RELA as Region Type (#1444)

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] d82356: Fix EM_AMDGPU to use RELA as Region Type (#1444), bbiiggppiigg <=