Drlink bug?

Stefan Bellon sbellon at sbellon.de
Fri Dec 28 07:35:16 PST 2001


Nick Burrett <nick at dsvr.net> wrote:
> Stefan Bellon <sbellon at sbellon.de> writes:

[snip]

> > But I still must be doing something wrong then:
> > 
> >     *drlink -aof -o foobar o.*
> > 
> > creates a library of 29K in size.
> > 
> >     *gcc -Xlinker -aof -o foobar o.*
> > 
> > creates a library of 127K in size.
> > 
> > Any ideas?

> Try *gcc -v and see what the drlink command line says.

Yes, it links quite a bit too much:

*gcc -v -Xlinker -aof -o foobar o.*
Using builtin specs.
gcc version 2.95.4 20010319 (prerelease) [gccsdk 20010912]
 gccpkg:bin/arm-riscos-aof/2_95_4/ld -o foobar
-Lgccpkg:bin/arm-riscos-aof/2_95_4/apcs26/unixlib
-Lgccpkg:bin/arm-riscos-aof/2_95_4 -aof *.o -lgcc -lunixlib -lgcc

How can I disable this linking against those libs I don't need when
creating a partially-linked AOF file?

Greetings,

Stefan.

-- 
 Stefan Bellon * <mailto:sbellon at sbellon.de> * <http://www.sbellon.de/>
 PGP 2 and OpenPGP keys available from my home page

 100% of people born in 1839, who ate carrots, are dead.



More information about the gcc mailing list