[gccsdk] GCC4.1.1 examples

Peter Naulls peter at chocky.org
Sun Jan 24 08:46:59 PST 2010


Gavin Wraith wrote:
> I have succeeded in compiling the example ackermann_shared_ul
> with GCC4.1.1; every journey starts with a single step.
> 
> Would it be too much to ask for an example that compiles a
> simple shared library, foo.so, containing a single test function
> that prints out "foo" plus and compiles an executable that uses it?

Yes, it should.  I think it was missed from the released since
we wanted to make sure everything else was ok, and there's
still some unresolved issues with filename handling and
shared libraries.

At the moment, there isn't even really a canonical way of
doing this natively.  You're welcome to experiment, although
note problems in these posts:

http://www.riscos.info/pipermail/gcc/2009-September/004914.html
http://www.riscos.info/pipermail/gcc/2010-January/005123.html

So for now, unless you want to deal with this hassle and/or
be involved in making this situation more sane (which
would certainly be appreciated), then you should perhaps avoid it
and stick to static binaries for now.

 > Now that I have GCC4.1.1 release 2 should I still have the ELF
 > loader module (0.03 - 22 Jan 2004) in my boot sequence?

Yes, that is very old.  !SharedLibs contains all the correct
support for ELF.




More information about the gcc mailing list