View Single Post
Old 29 July 2013, 10:38   #4
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,537
Quote:
Originally Posted by Cowcat View Post
The problem I face is when my data is based arround float point: The PPC code needs the link library -lm to work correctly, but at linking time I can only use 68k link libraries.
Are you trying to build a WarpOS executable?

You have to resolve all PPC symbol references, before doing the final linking step with the 68k startup code, objects and libraries. So you may try the following with all the PPC objects (from memory, assuming WarpOS EHF object file format):

Code:
vlink -bamigaehf -r -o ppc.o ppcobj1.o ppcobj2.o ... -Lvlibwos: -lm
-r means that you don't want to create an executable, but an object file, suitable for another linker pass. This should resolve all PPC references to floating point functions from m.lib.

In the final linking step you just link with ppc.o.
phx is offline  
 
Page generated in 0.07545 seconds with 11 queries