[DynInst_API:] [dyninst/dyninst] 934c91: symtabAPI: Apply corrections for the library_adjus...


Date: Tue, 28 Jun 2016 14:11:08 -0700
From: Bill Williams <wwilliam47@xxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] 934c91: symtabAPI: Apply corrections for the library_adjus...
  Branch: refs/heads/master
  Home:   https://github.com/dyninst/dyninst
  Commit: 934c91c5f232ffcc9553628590094a7e4619c7d9
      https://github.com/dyninst/dyninst/commit/934c91c5f232ffcc9553628590094a7e4619c7d9
  Author: Josh Stone <jistone@xxxxxxxxxx>
  Date:   2016-06-27 (Mon, 27 Jun 2016)

  Changed paths:
    M symtabAPI/src/emitElf.C
    M symtabAPI/src/emitElfStatic.C

  Log Message:
  -----------
  symtabAPI: Apply corrections for the library_adjust page offset

This commit aggregates the incremental fixes that Bill Williams and I
found while investigating issue #93, rewriting libc.so.

- The offsets of new sections need to account for library_adjust when
  placing themselves after the first new section.
- TLS symbol values need *not* be adjusted, as they're section-relative.
- DT_INIT/FINI values need to be adjusted.
- x86 IRELATIVE relocations need their addends adjusted.

Fixes #93.


  Commit: 78032155bdac8f83e7f4112ff41a47aed68e9822
      https://github.com/dyninst/dyninst/commit/78032155bdac8f83e7f4112ff41a47aed68e9822
  Author: Bill Williams <wwilliam47@xxxxxxxxx>
  Date:   2016-06-28 (Tue, 28 Jun 2016)

  Changed paths:
    M symtabAPI/src/emitElf.C
    M symtabAPI/src/emitElfStatic.C

  Log Message:
  -----------
  Merge pull request #109 from cuviper/paged-papercuts

symtabAPI: Apply corrections for the library_adjust page offset


Compare: https://github.com/dyninst/dyninst/compare/fae68e61b8d6...78032155bdac
[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] 934c91: symtabAPI: Apply corrections for the library_adjus..., Bill Williams <=