[DynInst_API:] [dyninst/dyninst] dfa440: symtabAPI: use the known type for new relocations


Date: Thu, 18 Aug 2016 13:24:32 -0700
From: Josh Stone <jistone@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] dfa440: symtabAPI: use the known type for new relocations
  Branch: refs/heads/master
  Home:   https://github.com/dyninst/dyninst
  Commit: dfa440eb1bb9220d6c323fa34bc8f61c25928224
      https://github.com/dyninst/dyninst/commit/dfa440eb1bb9220d6c323fa34bc8f61c25928224
  Author: Josh Stone <jistone@xxxxxxxxxx>
  Date:   2016-08-18 (Thu, 18 Aug 2016)

  Changed paths:
    M symtabAPI/src/emitElf.C

  Log Message:
  -----------
  symtabAPI: use the known type for new relocations

In emitElf::createRelocationSections(), new relocations were calling
getGlobalRelType to determine their type.  However, this didn't take the
symbol type into account, so functions on PPC64 were getting GLOB_DAT
instead of JMP_SLOT, and they didn't work at all when called.

Each new relocationEntry already knows its type, so use getRelType().


[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] dfa440: symtabAPI: use the known type for new relocations, Josh Stone <=