https://sourceware.org/bugzilla/show_bug.cgi?id=18087
--- Comment #16 from Sourceware Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jan Beulich <[email protected]>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f3947c40941a652673eb695db77e824ee86b1474 commit f3947c40941a652673eb695db77e824ee86b1474 Author: Tobias Deiminger <[email protected]> Date: Tue Dec 1 08:12:01 2026 +0100 bfd: fix reading compressed debug sections of pei-* images Since 0921b99dafd5 ("PR 33033, Support compressed debug sections larger than 4 GiB"), compressed debug sections of pei-* images can no longer be read. For example: $ x86_64-w64-mingw32-gcc -g -o testprog testprog.c $ objcopy --compress-debug-sections testprog.exe testprog_z.exe $ gdb --batch -ex "break fn" -ex "info line fn" testprog_z.exe warning: Can't read data for section '.zdebug_info' in file '/.../testprog_z.exe' ... No line number information available for address 0x140001490 <fn> It worked prior to 0921b99dafd5, because padding that generally exists after zlib streams in compressed PE image sections was tolerated during decompression. 0921b99dafd5 turned padding into an error condition, most likely unintentionally, and decompression has failed since then. The padding is an expected consequence of PE having no section field that could communicate the compressed size. See PR 18087 for discussion and withdrawn alternatives. Fix it by restoring support for padding after compressed streams, and additionally sanitize decompression by allowing only zero padding, and by allowing it only for non-ELF files. Signed-off-by: Tobias Deiminger <[email protected]> -- You are receiving this mail because: You are on the CC list for the bug.
