debug/elf: add File.DynValue method to look up DynTag values #18681
Labels
FeatureRequest
Issues asking for a new feature that does not need a proposal.
help wanted
Proposal-Accepted
Milestone
Currently there is no method/function to convert elf.Symbol.Info to SymBind and SymType, even thought there is a function ST_INFO to convert SymBind and SymType into uint8.
We probably should have created a new type for Symbol.Info, but we can't do that before Go 2.
Therefore I propose the addition of the following two methods to elf.Symbol:
Perhaps we could also make elf.Symbol implement Stringer, but I'm not sure about the format yet. Any suggestions?
Additionally, the elf package looks like automated conversion from elf.h as it contains a lot of top-level functions will non-idiolmatic names (R_INFO, R_SYM32, etc.) without any docs. For Go 2, we should get rid of them, and turn them into proper methods with idiomatic names.
/cc @ianlancetaylor
The text was updated successfully, but these errors were encountered: