On 06/01/2016 20:24, Jerry James wrote:
I don't know what is going on here. It looks as though Mac OS X is
expecting some sort of relocation rather than an absolute address.
The error means that assign_word is not a position-independent symbol,
so the reference to it from _entryPointVector requires a relocation.
Anthony, when x86asmtemp.S was compiled, was -fPIC or a related flag
passed to the compiler or assembler? (Full disclosure: I don't use,
and don't even have access to, Mac OS X, so if I appear to be talking
nonsense, that's probably because I am.)
It's hand-coded assembler. I can't see how the -fPIC option could apply
to the assembler since that would imply generating different code.
_entryPointVector is a vector that contains the absolute addresses of
various pieces of assembly code. It will require relocation when it is
loaded but it works perfectly well in dynamic libraries on various
flavours of Unix and on Windows.
David
_______________________________________________
polyml mailing list
[email protected]
http://lists.inf.ed.ac.uk/mailman/listinfo/polyml