How to inform `as` not to do linking after compiling?

Eric Christopher echristo@apple.com
Wed Oct 22 05:24:00 GMT 2008


On Oct 21, 2008, at 9:48 PM, Pan ruochen wrote:

> Hi All,
>
> $cp -f 001.s 002.s
> $mips-elf-as -O0 -G 0 -mips32r2 -EL 001.s 002.s
> 002.s: Assembler messages:
> 002.s:1: Error: symbol `_Init' is already defined
>
> It seems that `as` invoke `ld` to link the object files after  
> comipling?
> So how can I inform `as` not to do linking after compiling?

It is not invoking ld after assembling.

Please read this:

http://sourceware.org/binutils/docs-2.18/as/Input-Files.html#Input-Files

-eric



More information about the Binutils mailing list