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


Date: Thu, 18 Aug 2016 10:24:36 -0700
From: Bill Williams <wwilliam47@xxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] 833960: symtabAPI: use the known type for new relocations
  Branch: refs/heads/v9.2_patches
  Home:   https://github.com/dyninst/dyninst
  Commit: 833960213a6b40b1af40487bf51a98ef1e7e6ece
      https://github.com/dyninst/dyninst/commit/833960213a6b40b1af40487bf51a98ef1e7e6ece
  Author: Josh Stone <jistone@xxxxxxxxxx>
  Date:   2016-08-17 (Wed, 17 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().


  Commit: d0b2355e4cfad4ef4352be90b9c3ceef89648d91
      https://github.com/dyninst/dyninst/commit/d0b2355e4cfad4ef4352be90b9c3ceef89648d91
  Author: Bill Williams <wwilliam47@xxxxxxxxx>
  Date:   2016-08-18 (Thu, 18 Aug 2016)

  Changed paths:
    M symtabAPI/src/emitElf.C

  Log Message:
  -----------
  Merge pull request #156 from cuviper/ppc64-rel-type

symtabAPI: use the known type for new relocations


Compare: https://github.com/dyninst/dyninst/compare/6e1b36f62c08...d0b2355e4cfa
[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] 833960: symtabAPI: use the known type for new relocations, Bill Williams <=