Re: lang/gprolog improvements: sparc64, PIE, system malloc(3)

2018-11-21 Thread Christian Weisgerber
On 2018-11-20, Christian Weisgerber wrote: > (Unfortunately, it still errors out with text relocations when built > on i386 with lld, but that's a separate issue.) There are text relocations deep in the runtime environment, somewhere in a maze of Prolog, WAM, C and inline assembly. That said, s

Re: lang/gprolog improvements: sparc64, PIE, system malloc(3)

2018-11-20 Thread Christian Weisgerber
Jeremie Courreges-Anglas: > Testing on sparc64 proved successful even though '-fno-pie -nopie' > wasn't used in CFLAGS. Using those seems needed only on i386, and maybe > powerpc (can't test those archs). We want to use PIE when possible, so > the diff below restricts the use of '-fno-pie -nopie

Re: lang/gprolog improvements: sparc64, PIE, system malloc(3)

2018-11-20 Thread Christian Weisgerber
On 2018-11-17, Jeremie Courreges-Anglas wrote: > Testing on sparc64 proved successful even though '-fno-pie -nopie' > wasn't used in CFLAGS. Using those seems needed only on i386, and maybe > powerpc (can't test those archs). We want to use PIE when possible, so > the diff below restricts the u

lang/gprolog improvements: sparc64, PIE, system malloc(3)

2018-11-17 Thread Jeremie Courreges-Anglas
As pointed out by Daniel, gprolog can now work on sparc64 if we help it a little. Detection of sigaction/siginfo_t fails for a dubious reason (the system returns the address of the page of the faulty access, instead of the faulty address). The diff below attempts to fix it in a portable way. T