libphobos: Fix executables segfault on mipsel architecture
authorIain Buclaw <ibuclaw@gdcproject.org>
Sat, 23 Jan 2021 23:20:25 +0000 (00:20 +0100)
committerIain Buclaw <ibuclaw@gdcproject.org>
Sat, 23 Jan 2021 23:20:25 +0000 (00:20 +0100)
commit81f928ec8e8abf1f21c5ff008c39b5d6af78f6cb
treeaa54c488bb8d7665542164f4529b12897181bb7b
parent7e0f147a29f42d6149585573650bd4827f3b2b93
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.
libphobos/libdruntime/gcc/sections/elf_shared.d