aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-nat.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2025-11-27 09:00:26 +1030
committerAlan Modra <amodra@gmail.com>2025-11-27 09:11:17 +1030
commit0587fb9f40f6fdb1f0007226147d66c51d33b5c5 (patch)
tree8781594bb07dc2111990340bca3bac36900a8ccb /gdb/linux-nat.c
parent2600d751c34d127786fa50ab32c9d4f589181ee6 (diff)
downloadbinutils-0587fb9f40f6fdb1f0007226147d66c51d33b5c5.zip
binutils-0587fb9f40f6fdb1f0007226147d66c51d33b5c5.tar.gz
binutils-0587fb9f40f6fdb1f0007226147d66c51d33b5c5.tar.bz2
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.
Diffstat (limited to 'gdb/linux-nat.c')
0 files changed, 0 insertions, 0 deletions