]> gcc.gnu.org Git - gcc.git/commit
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>
Sun, 24 Jan 2021 00:08:21 +0000 (01:08 +0100)
commit12c90e8741184604c2c66b6465bc85cd1765c53b
tree703bdbb5b39fe1827594895d1de853214c70cd62
parent0184527ae9f81ef3865703b43212963b95ae174d
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)
libphobos/libdruntime/gcc/sections/elf_shared.d
This page took 0.058285 seconds and 5 git commands to generate.