google / bloaty

Bloaty: a size profiler for binaries
Apache License 2.0
4.79k stars 346 forks source link

Add support for zstd compressed debug sections (#318) #364

Open EricRahm opened 1 year ago

EricRahm commented 1 year ago

Add support for processing zstd compressed debug sections. lld and associated tools now support using zstd in addition to zlib for debug info compression, for example:

clang++ -gz=zstd foo.cc

clang++ -shared -W,--compress-debug-sections=zstd foo.cc

llvm-objcopy --compress-debug-sections=zstd foo.o foo-compressed.o

This CL:

EricRahm commented 1 year ago

@haberman Mind taking a look? This doesn't have the cmake hooks, but that's a bit out of my wheelhouse and. cc @walkingeyerobot

piwicode commented 8 months ago

@haberman This change enables to inspect Fuchsia OS project binaries.