I am trying to compile as a shared object, so.riscos, a piece of C code,
riscoslib.c, that calls some short bits of machine code, in sys.o,
which previously I had assembled with Objasm. I can get asasm to assemble to
the elf file, sys.o, but the linker says:

error: sys.o uses FPA instructions, whereas so.riscos does not
error: sys.o uses hardware FP, whereas so.riscos uses software FP
failed to merge target specific data of file sys.o

Neither bits of code use any floating point whatsoever. So how do I
tell the linker to calm down? What I want, for the project in general,
is to use vfp in hardware for everything.

The linker also says of riscoslib.c:
crt0.S:(.data+0x14): undefined reference to `main'

No indeed, but it has a function "luaopen_riscos" which is supposed
to be called after loading, to initialize itself. Is this something the
linker needs to know? If so, how do I tell it?

--
Gavin Wraith (ga...@wra1th.plus.com)
Home page: http://www.wra1th.plus.com/

_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

Reply via email to