]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/archive: skip sentinel archive entries created by Go cmd
authorThan McIntosh <thanm@google.com>
Tue, 15 Aug 2023 14:24:41 +0000 (10:24 -0400)
committerThan McIntosh <thanm@google.com>
Tue, 15 Aug 2023 15:39:57 +0000 (15:39 +0000)
commit1e245d21b8ec0a4afb459b6f146cbc0c47f5cb24
treedc7e025ed3626e7f820129deeb64a06db1e55f51
parentfc212a9307980b8d29fff1736f0ba1ed1e5898a2
cmd/internal/archive: skip sentinel archive entries created by Go cmd

When reading an archive, check for the presence of sentinel entries
created by the Go command. These zero-sized marker entries don't contain
any useful symbols, but rather are there to communicate info to the
linker; ignore them during symbol dumping.

Fixes #62036.

Change-Id: Ied017b0c5b92a3cf6fd13bb9c9f3a9664e4f20f8
Reviewed-on: https://go-review.googlesource.com/c/go/+/519635
Run-TryBot: Than McIntosh <thanm@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/go/testdata/script/cgo_suspect_flag_force_external.txt
src/cmd/internal/archive/archive.go
src/cmd/internal/objfile/goobj.go