binutils Newspaper
JUNE 15, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
binutils/gprof

Enable debuginfo decompression in gprof for split debuginfo.

gprof now decompresses separated debug files, fixing symbol lookup when debuginfo is split from the main binary.

This commit re-enables decompression of debuginfo files in gprof when dealing with split debuginfo. This fixes issues where gprof couldn’t find symbols when debug information was separated into a dedicated file. The change ensures that gprof can properly access and utilize the debug information, even when it’s stored in a compressed format within a separate file.

In Details

This commit addresses symbol lookup failures in gprof when using split debuginfo. By unconditionally setting BFD_DECOMPRESS on the debug BFD, gprof can now correctly decompress the separated debug file. This reverts a previous commit while retaining the crucial decompression flag based on feedback. The change impacts open_separated_debug_file in gprof/corefile.c and its interaction with the BFD library.

For Context

gprof is a performance analysis tool that profiles program execution to identify performance bottlenecks. Debuginfo contains symbol information that maps addresses to function names and source code lines. Split debuginfo separates debug information from the main executable into a standalone file, reducing the size of the executable. This commit enables gprof to properly read compressed debug information from these separate files, ensuring accurate profiling results.

Filed Under: binutilsgprofdebuginfo