Bug#980204: gdc: Resulting executables segfault on mipsel architecture (signal 11)

2021-01-24 Thread Matija Nalis
On Sun, Jan 24, 2021 at 01:15:51AM +0100, Iain Buclaw wrote: > The logmake application runs just fine here. Fix has been committed to > gcc mainline, and backported to the version 9 and 10 release branches. > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98806 Thanks a lot for your work, Iain!

Bug#980204: gdc: Resulting executables segfault on mipsel architecture (signal 11)

2021-01-23 Thread Iain Buclaw
Excerpts from Iain Buclaw's message of January 23, 2021 11:07 am: > Excerpts from Iain Buclaw's message of January 23, 2021 2:36 am: >> >> So the crux of the matter is that on MIPS, dynamic sections are read-only >> (glibc sets DL_RO_DYN_SECTION 1), which requires special handling when >>

Bug#980204: gdc: Resulting executables segfault on mipsel architecture (signal 11)

2021-01-23 Thread Iain Buclaw
Excerpts from Iain Buclaw's message of January 23, 2021 2:36 am: > > So the crux of the matter is that on MIPS, dynamic sections are read-only > (glibc sets DL_RO_DYN_SECTION 1), which requires special handling when pulling > data from dl_phdr_info. > > Re-running with the attached patch

Bug#980204: gdc: Resulting executables segfault on mipsel architecture (signal 11)

2021-01-22 Thread Iain Buclaw
Excerpts from Iain Buclaw's message of January 22, 2021 8:14 pm: > Excerpts from Matija Nalis's message of January 22, 2021 5:51 pm: >> On Fri, Jan 22, 2021 at 12:59:34PM +0100, Iain Buclaw wrote: >>> Also, are you linking to the static or shared libphobos library? >> >> shared (default): >> >>

Bug#980204: gdc: Resulting executables segfault on mipsel architecture (signal 11)

2021-01-22 Thread Iain Buclaw
Excerpts from Matija Nalis's message of January 22, 2021 5:51 pm: > On Fri, Jan 22, 2021 at 12:59:34PM +0100, Iain Buclaw wrote: >> Also, are you linking to the static or shared libphobos library? > > shared (default): > > (mipsel-chroot):/tmp/w$ dpkg -l gdc | grep gdc > ii gdc

Bug#980204: gdc: Resulting executables segfault on mipsel architecture (signal 11)

2021-01-22 Thread Matija Nalis
On Fri, Jan 22, 2021 at 12:59:34PM +0100, Iain Buclaw wrote: > > (mipsel-chroot)$ printf 'import std.stdio;\nvoid main() { writeln("Hello, > > World!"); }\n' > hello.d ; gdc hello.d && ./a.out > > qemu: uncaught target signal 11 (Segmentation fault) - core dumped > > Segmentation fault > > > >

Bug#980204: gdc: Resulting executables segfault on mipsel architecture (signal 11)

2021-01-22 Thread Iain Buclaw
Excerpts from Matija Nalis's message of January 16, 2021 3:54 am: > Package: gdc > Version: 4:10.2.1-1 > Severity: normal > X-Debbugs-Cc: mnalis-debian...@voyager.hr > > Dear Maintainer, > > compiling D programs with gdc produces excutable, but trying to run that > executable segfaults. > I've

Bug#980204: gdc: Resulting executables segfault on mipsel architecture (signal 11)

2021-01-15 Thread Matija Nalis
Package: gdc Version: 4:10.2.1-1 Severity: normal X-Debbugs-Cc: mnalis-debian...@voyager.hr Dear Maintainer, compiling D programs with gdc produces excutable, but trying to run that executable segfaults. I've tried various gdc flags, but never managed to produce even the simplest working