From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2124) id C1B363858D33; Tue, 21 Nov 2023 11:31:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C1B363858D33 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Nick Clifton To: bfd-cvs@sourceware.org Subject: [binutils-gdb] Fix: symbols eliminated by --gc-sections still trigger warnings for gnu.warning.SYM X-Act-Checkin: binutils-gdb X-Git-Author: Nick Clifton X-Git-Refname: refs/heads/master X-Git-Oldrev: eb42bb148956c283d485bbd182606a851280149d X-Git-Newrev: 1367eeec2cbd1bb14b89030e199d06fc676ffc49 Message-Id: <20231121113100.C1B363858D33@sourceware.org> Date: Tue, 21 Nov 2023 11:31:00 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Nov 2023 11:31:00 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D1367eeec2cbd= 1bb14b89030e199d06fc676ffc49 commit 1367eeec2cbd1bb14b89030e199d06fc676ffc49 Author: Nick Clifton Date: Tue Nov 21 11:30:03 2023 +0000 Fix: symbols eliminated by --gc-sections still trigger warnings for gnu= .warning.SYM =20 PR 31067 Fix typo in previous delta: defined -> referenced. Diff: --- ld/ld.texi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ld/ld.texi b/ld/ld.texi index 0704eece8d6..7ee06a71744 100644 --- a/ld/ld.texi +++ b/ld/ld.texi @@ -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. =20 Note - because these warning messages are generated before the linker performs garbage collection (if enabled) it is possible for a warning