diff options
author | Nick Clifton <nickc@redhat.com> | 2023-11-21 11:30:03 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2023-11-21 11:30:03 +0000 |
commit | 1367eeec2cbd1bb14b89030e199d06fc676ffc49 (patch) | |
tree | 3db6a7108266714e1f8d805a9f8d007ca77ef5f2 | |
parent | eb42bb148956c283d485bbd182606a851280149d (diff) | |
download | gdb-1367eeec2cbd1bb14b89030e199d06fc676ffc49.zip gdb-1367eeec2cbd1bb14b89030e199d06fc676ffc49.tar.gz gdb-1367eeec2cbd1bb14b89030e199d06fc676ffc49.tar.bz2 |
Fix: symbols eliminated by --gc-sections still trigger warnings for gnu.warning.SYM
PR 31067
Fix typo in previous delta: defined -> referenced.
-rw-r--r-- | ld/ld.texi | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -7547,12 +7547,12 @@ garbage collection or orphan handling. The contents of any section whoes name starts with the prefix @samp{.gnu.warning.} and then finishes with the name of a symbol is treated in a similar fashion to the @samp{.gnu.warning} section, but -only if the named symbol is defined. So for example the contents of a -section called @samp{.gnu.warning.foo} will be displayed as warning -message if, and only if, the symbol @samp{foo} is defined by one or -more of the input files. This includes object files pulled in from -static libraries, shared objects needed to complete the link and so -on. +only if the named symbol is referenced. So for example the contents +of a section called @samp{.gnu.warning.foo} will be displayed as +warning message if, and only if, the symbol @samp{foo} is referenced +by one or more of the input files. This includes object files pulled +in from static libraries, shared objects needed to complete the link +and so on. Note - because these warning messages are generated before the linker performs garbage collection (if enabled) it is possible for a warning |