[Bug d/98806] libphobos: Resulting executables segfault on mipsel architecture
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jan 24 00:11:13 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98806
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Iain Buclaw
<ibuclaw@gcc.gnu.org>:
https://gcc.gnu.org/g:0bf7a17b2779c443d8f856fbbb028a9af9bdd9ad
commit r9-9198-g0bf7a17b2779c443d8f856fbbb028a9af9bdd9ad
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date: Sun Jan 24 00:20:25 2021 +0100
libphobos: Fix executables segfault on mipsel architecture
The dynamic section on MIPS is read-only, but this was not properly
handled in the runtime library. The segfault only occurred for programs
that linked to the shared libphobos library.
libphobos/ChangeLog:
PR d/98806
* libdruntime/gcc/sections/elf_shared.d (MIPS_Any): Declare version
for MIPS32 and MIPS64.
(getDependencies): Adjust dlpi_addr on MIPS_Any.
(cherry picked from commit 81f928ec8e8abf1f21c5ff008c39b5d6af78f6cb)
More information about the Gcc-bugs
mailing list