elf: Check corrupt VTENTRY relocation addend

H.J. Lu hjl.tools@gmail.com
Tue Sep 23 02:16:50 GMT 2025


Check corrupt VTENTRY relocation addend to avoid linker crash on

  h->u2.vtable->used[addend >> log_file_align] = true;

PR ld/33452
* elflink.c (bfd_elf_gc_record_vtentry): Return false if VTENTRY
relocation addend is too large.


-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-elf-Check-corrupt-VTENTRY-relocation-addend.patch
Type: text/x-patch
Size: 1211 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20250923/cd797108/attachment.bin>


More information about the Binutils mailing list