google / bloaty

Bloaty: a size profiler for binaries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Symbols with no name should use the address for their "name"

haberman opened this issue · comments

Sometimes symbols are present in the symbol table, but the strtab index is 0. This indicates a symbol that has had its name removed, even though the symbol table entry is present.

Right now Bloaty will error out on these symbols with an error like:

bloaty: can't read index 0 from strtab, total size is 254049

Instead we should use the address of the symbol as its name in this case.