On 2018-11-24, George Koehler <[email protected]> wrote: > The below diff for OpenBSD's math/p5-Math-Pari tries to be like > FreeBSD, but seems not correct. It passes `make test` on amd64, but I > suspect it doesn't use GMP even though I tried to enable GMP. Pari > has some assembly kernels (like alpha, ix86, ppc, ...) and a GMP > kernel; I wonder if the GMP kernel would fix the lld error.
I can point out the specific problem: src/kernel/ix86/l0asm.c is preprocessed into level0.s, which uses absolute addressing to access the common variables "overflow" and "hiremainder". That causes the text relocations lld complains about. The corresponding current code is in src/kernel/ix86/asm0.h and has been rewritten as inline assembly that only uses registers and local variables: http://pari.math.u-bordeaux.fr/cgi-bin/gitweb.cgi?p=pari.git;a=blob;f=src/kernel/ix86/asm0.h -- Christian "naddy" Weisgerber [email protected]
