Skip to content

Commit

Permalink
Merge pull request #1147 from Saldivarcher/add-trace-symbol-help-msg
Browse files Browse the repository at this point in the history
  • Loading branch information
rui314 authored Nov 15, 2023
2 parents 49066ea + c6bfff2 commit efdac9a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/mold.1
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,9 @@ Set target system root directory to \fIdir\fR\.
\fB\-\-trace\fR
Print name of each input file\.
.TP
\fB\-y\fR \fIsymbol\fR, \fB\-\-trace\fR=\fIsymbol\fR
Trace references to \fIsymbols\fR.
.TP
\fB\-\-undefined\-version\fR, \fB\-\-no\-undefined\-version\fR
By default, \fBmold\fR warns on a symbol specified by a version script or by \fB\-\-export\-dynamic\-symbol\fR if it is not defined\. You can silence the warning by \fB\-\-undefined\-version\fR\.
.TP
Expand Down
3 changes: 3 additions & 0 deletions docs/mold.md
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,9 @@ arguments.
* `--trace`:
Print name of each input file.

* `-y` _symbol_, `--trace-symbol`=_symbol_:
Trace references to symbols.

* `--undefined-version`, `--no-undefined-version`:
By default, `mold` warns on a symbol specified by a version script or by
`--export-dynamic-symbol` if it is not defined. You can silence the warning
Expand Down
2 changes: 2 additions & 0 deletions elf/cmdline.cc
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ inline const char helpmsg[] = R"(
--threads Use multiple threads (default)
--no-threads
--trace Print name of each input file
-y SYMBOL, --trace-symbol SYMBOL
Trace references to symbols
--undefined-version Do not report version scripts that refer undefined symbols
--no-undefined-version Report version scripts that refer undefined symbols (default)
--unique PATTERN Don't merge input sections that match a given pattern
Expand Down

0 comments on commit efdac9a

Please sign in to comment.