debug/elf: elf.Symbols()
never populates Version
or Library
struct fields.
#50625
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?go1.18-3b5eec9
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?linux/amd64
What did you do?
Viewed the
elf.Symbol
's in both cgo & go elf binaries. See here, the binaries I looked at are included in that repo.Used
ldd
to confirm the binaries in question are static and dynamically linked, respectively.Used
readelf -{s, S}
to confirm the cgo binary contains no dynamic symbol table unlike the regular go binary.What did you expect to see?
Well I didn't really expect to see anything, just noticed this in passing & thought it was strange the fields never got populated. Peeking at the
Symbol
struct I noticed this comment which suggests theVersion
&Library
fields would be populated in the.dynsym
table but not in the.symtab
table.Poking around a bit more, looks like there is no attempt to populate either field. (ref)
What did you see instead?
Neither
Version
orLibrary
populated for either symbol table/binary.The text was updated successfully, but these errors were encountered: