]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link: correct error message in loadelf.Load
authorIan Lance Taylor <iant@golang.org>
Wed, 4 Feb 2026 20:42:44 +0000 (12:42 -0800)
committerGopher Robot <gobot@golang.org>
Fri, 6 Feb 2026 17:37:36 +0000 (09:37 -0800)
The message said we were ignoring the symbols, but we aren't.
We are treating them as an error.

For #77436

Change-Id: I5492d81717c539b09f6956b591178f1f3a42893d
Reviewed-on: https://go-review.googlesource.com/c/go/+/742060
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/cmd/link/internal/loadelf/ldelf.go

index 8f4c1a5765e352b9ee7f6c51c9a0e595e3df8f26..239d4c169dcfd91ae01314c67935ae75cf3191bc 100644 (file)
@@ -627,7 +627,7 @@ func Load(l *loader.Loader, arch *sys.Arch, localSymVersion int, f *bio.Reader,
                                continue
                        }
 
-                       return errorf("%v: sym#%d (%q): ignoring symbol in section %d (%q) (type %d)", elfsym.sym, i, elfsym.name, elfsym.shndx, sect.name, elfsym.type_)
+                       return errorf("%v: sym#%d (%q): unrecognized symbol in section %d (%q) (type %d)", elfsym.sym, i, elfsym.name, elfsym.shndx, sect.name, elfsym.type_)
                }
 
                s := elfsym.sym