google / bloaty

Bloaty: a size profiler for binaries
Apache License 2.0
4.66k stars 337 forks source link

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

Open EricRahm opened 10 months ago

EricRahm commented 10 months 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 10 months 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 5 months ago

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