]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix: symbols eliminated by --gc-sections still trigger warnings for gnu.warning.SYM
authorNick Clifton <nickc@redhat.com>
Tue, 21 Nov 2023 11:30:03 +0000 (11:30 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 21 Nov 2023 11:30:03 +0000 (11:30 +0000)
  PR 31067
  Fix typo in previous delta: defined -> referenced.

ld/ld.texi

index 0704eece8d667a3f8cc0c828bfed7ee6c3139860..7ee06a7174472fac48765395abacbe1a055ddd5d 100644 (file)
@@ -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