You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
The elf package provide a sentinel error, ErrNoSymbols for the case
that Symbols or DynamicSymbols cannot return a symbol list because the
section is empty[1]. The same situation is handled in plan9obj by
returning a new error for this case[2-3]. For PE/Mach-O there is no
issue since access to the symbols is via direct access to a slice
field.
Because of this, it's either necessary to do an error string comparison
or re-call f.Section("syms") to check whether is was nil.
Would a PR to add a package var error reflecting the elf package
approach be acceptable?