google / bloaty

Bloaty: a size profiler for binaries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`bloaty -d compileunits` gives `bloaty: Don't know how to parse DWARF form: 21`

jchl opened this issue · comments

$ bloaty -d compileunits mylib.so --debug-file mylib.so.debug 
bloaty: Don't know how to parse DWARF form: 21

It works fine with -d symbols, or with no -d option.

I can try to provide a simple library that reproduces this, but to do so it would be helpful if you could tell me anything about what "DWARF form 21" is.

Looks like that would be DW_FORM_ref_udata:

https://github.com/google/bloaty/blob/master/src/dwarf_constants.h#L148

Try #197 and let me know if it works for you.

That seems to fix it. Thanks!