Apologies - scrub my last post. I had forgot the shared flag, among other idiocies.
With the command
gcc -std=gnu99 -fPIC -O2 -Wall -Wextra -Wl,-E -shared -mfpu=vfp -DRISCOS -o so/riscos riscoslib.c sys.s
the plugin file gets created OK. However when I run my test program the dynamic linker
complains that it cannot resolve two symbols: 'rdir' and 'swi_call'.
These are declared .global in the gas source sys.s. In fact they are the first
in the lists of such declarations that appear in the source. There are 12
such symbols declared and I am not sure whether the other 10 have been recognized
or whether the linker has simply bailed out after two failures. The
latter seems most likely.
Evidently the command shown above is not resolving the references in riscoslib.o to sys.o.
I need sys.o to be statically linked to riscoslib.o to create the plugin.
--
Gavin Wraith (gavin@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
No comments:
Post a Comment