This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]