alan buckley wrote:
I'm trying out a test program that links to glib-2.0 as a
shared library. The shared library and testprogram
(testlib.c) are both cross-compiled.
When I run the program I get the following error: HostFS:$.DEV.glib.testglib: Text relocation of data symbol '' found:
 SharedLibs:lib.libglib-2/0/so/0 (offset 0xCD57C)

Any ideas of how I get it to work? Or where I need to look
to find out what is going on.
Is it something that may have been fixed recently in GCCSDK in
which case what do I need to rebuild?

Have you tried rebuilding libglib from scratch again recently? It's also quite easy to rebuild bug fixed libraries, forget to transfer them to !SharedLibs and then wonder why nothing has changed. I've done that myself :-) I've just tried building libglib2.0-0 in the autobuilder and have been able to run a number of the test programs that are linked to it, so I think the problem may be local to your build environment. If you do a 'readelf -d' on the library, do you see a TEXTREL entry? If so, then this together with the error indicates that part of the library (if not all) was compiled without -fPIC. How this is possible though, when it builds correctly for me, I don't know.

Lee.

_______________________________________________
GCCSDK mailing list [email protected]
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