]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix 32085 Source file not recognized for gcc 11.4.0-compiled code
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Tue, 7 Jan 2025 05:40:12 +0000 (21:40 -0800)
committerVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Wed, 8 Jan 2025 06:27:46 +0000 (22:27 -0800)
commit8520cebeb576ae345ae506f2d7207668cc68d1cb
treee4dbb54628cb56e03abd25d679ab86e82f82f7a8
parent8791ea5e49c886788e6835c38ad188c025810382
Fix 32085 Source file not recognized for gcc 11.4.0-compiled code

gprofng cannot read compressed section.
In the next release we plan to use libbfd everywhere instead of our ELF reader.
But in this release I use bfd_get_full_section_contents() only
when bfd_is_section_compressed() returns true.

gprofng/ChangeLog
2025-01-06  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>

PR gprofng/32085
* src/Elf.cc: Use bfd_get_full_section_contents to decompress a section.
* src/Elf.h: Define SEC_DECOMPRESSED.
gprofng/src/Elf.cc
gprofng/src/Elf.h