Skip to content

Commit 86a2cd8

Browse files
author
deadwood
committed
Add documentation for --add-debug-tag argument
1 parent fd35bb9 commit 86a2cd8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

patchelf.1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ option can be given multiple times.
8989
Marks the object so that the search for dependencies of this object will ignore any
9090
default library search paths.
9191

92+
.IP "--add-debug-tag"
93+
Adds DT_DEBUG tag to the .dynamic section if not yet present in an ELF
94+
object. A shared library (-shared) by default does not receive DT_DEBUG tag.
95+
This means that when a shared library has an entry point (so that it
96+
can be run as an executable), the debugger does not connect to it correctly and
97+
symbols are not resolved.
98+
9299
.IP "--output FILE"
93100
Set the output file name. If not specified, the input will be modified in place.
94101

0 commit comments

Comments
 (0)