Drlink bug?

Peter Naulls peter at chocky.org
Fri Dec 28 08:05:52 PST 2001


In message <4af0022296sbellon at sbellon.de>
          Stefan Bellon <sbellon at sbellon.de> wrote:

> Nick Burrett <nick at dsvr.net> wrote:

> > 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?

I thought so.  The GCC documentation will help you out here
(!gcc.docs.gcc) I think you'll want to try -nostdlib

Peter


-- 
------------------------------------------------------------------------
 Peter Naulls - peter at chocky.org
 RISC OS Projects Initiative  -  http://www.chocky.org/initiative/
 Java for RISC OS and ARM     -  http://www.chocky.org/java/
 Debian Linux on RiscPCs      -  http://www.chocky.org/debian/
------------------------------------------------------------------------



More information about the gcc mailing list