Branch: refs/heads/master
Home: https://github.com/dyninst/dyninst
Commit: 030131678e0b616573acc93fa1259d415b33765b
https://github.com/dyninst/dyninst/commit/030131678e0b616573acc93fa1259d415b33765b
Author: Josh Stone <cuviper@xxxxxxxxx>
Date: 2016-06-13 (Mon, 13 Jun 2016)
Changed paths:
M symtabAPI/src/emitElf.C
Log Message:
-----------
Simplify INTERP logic for better consistency (#84)
When .interp was in the first page, keep it there like the comment about
FreeBSD requires. Just shift it for the new PHDR. But if .interp is
already past the first page, as seen in libc.so for instance, then move
its offset a whole page like we do for every other section. Then
program headers follow the same logic.
The conditional around startMovingSections and object type is totally
removed, as it did the wrong thing for PIE binaries which otherwise look
like shared libraries. We now just move all sections except low interp.
Fixes #71.
|