debug/elf: elf.Symbols()
incorrectly returns ErrNoSymbols
for valid elf binaries.
#50626
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
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?
Attempted to view the symbol table of both static & dynamically linked binaries compiled with gcc.
For example,
readelf -{s, S} /bin/ls
(or evenreadelf -{s, S} /bin/*
on most distributions of linux) shows the symbol table of each elf binary without error.Attempting to view the symbol table of every binary under
/bin/*
on a basic linux distro by usingelf.Symbols()
failed in all cases.See example script here.
What did you expect to see?
A valid return of
[]elf.Symbol
fromelf.Symbols()
for at least one elf binary.What did you see instead?
elf.Symbols()
returnsErrNoSymbols
(ref)The text was updated successfully, but these errors were encountered: