https://sourceware.org/bugzilla/show_bug.cgi?id=33453
--- Comment #13 from Sourceware Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Alan Modra <[email protected]>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0587fb9f40f6fdb1f0007226147d66c51d33b5c5 commit 0587fb9f40f6fdb1f0007226147d66c51d33b5c5 Author: Alan Modra <[email protected]> Date: Thu Nov 27 09:00:26 2025 +1030 PR 33453 allow extra for .eh_frame in final link buffer The PR33453 testcase overflows a buffer allocated for the .eh_frame section. This happens with a silly large alignment for .eh_frame, creating a large gap between two .eh_frame sections. When the last FDE of the first section is stretched to cover the gap, we get a buffer overflow. This patch makes the final link buffer large enough to cover such gaps. It doesn't fix the testcase yet, because there the first .eh_frame section in question is the x86 plt_eh_frame section which uses a different buffer. However, similar testcases could be constructed using object file .eh_frame sections. PR 33453 * elflink.c (bfd_elf_final_link): Round up max_contents_size for .eh_frame alignment. -- You are receiving this mail because: You are on the CC list for the bug.
