https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98806
Bug ID: 98806 Summary: libphobos: Resulting executables segfault on mipsel architecture Product: gcc Version: 9.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: ibuclaw at gdcproject dot org Target Milestone: --- First reported in debian [1] and later confirmed. The issue is that on MIPS, dynamic sections are read-only (glibc sets DL_RO_DYN_SECTION 1), which requires special handling when getting data from dl_phdr_info. This is already done for RISCV, so just need to compile in the same code for MIPS as well. [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=980204