[PATCH 1/5] LoongArch: Reject R_LARCH_32 from becoming a runtime reloc in ELFCLASS64
Xi Ruoyao
xry111@xry111.site
Mon Jun 24 08:52:10 GMT 2024
On Mon, 2024-06-24 at 16:45 +0800, mengqinggang wrote:
> > But this is just wrong: at runtime the dynamic linker will run
> > *(uintptr *)&x += load_address, causing an OOB write.
>
>
> OOB write means R_LARCH_RELATIVE writes 8 bytes to 4 bytes?
Yep. If the next 4 bytes have some important data bad things happen.
--
Xi Ruoyao <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University
More information about the Binutils
mailing list