mirror of
https://github.com/NixOS/patchelf.git
synced 2025-10-19 11:24:11 +08:00
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.
This commit is contained in:
@@ -131,6 +131,8 @@ public:
|
||||
|
||||
void noDefaultLib();
|
||||
|
||||
void addDebug();
|
||||
|
||||
void clearSymbolVersions(const std::set<std::string> & syms);
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user