Commit Graph

3 Commits

Author SHA1 Message Date
deadwood
c6c4304ed6 Add --add-debug option
A shared library (-shared) by default does not receive DT_DEBUG tag.
This means that when a shared library has an entry point (so that it
can be run as an executable), the debugger does not connect to it
correctly and symbols are not resolved.

--add-debug option adds DT_DEBUG tag if it not yet present to an ELF
object.
2022-02-20 11:32:45 +01:00
Farid Zakaria
4604393fd6 Renamed findSection2 to tryFindSectionHeader 2021-12-21 10:29:03 -08:00
Farid Zakaria
05e8f673f7 Added patchelf.h
Added a header file to make things easier to navigate.

Renamed findSection3 -> getSectionIndex since thats more sensible to
read.

Renamed findSection -> findSectionHeader to better distinguish sections
from headers.
2021-12-20 14:54:37 -08:00