This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: Assembler in C


Hi again,

Yepp, that was the problem. GCC performed both assemble and linking and
thats why it wanted the _start symbol. With the write flag (compile only
- 'c') GCC figures out that it should use 'as' and that linking is not
wanted

Thanks all!

Regards, Daniel
 
> it seems your gcc command line is missing a 'compile only' - or 
> 'assemble only'- switch. That '-s', for your assembler file, 
> would let 
> gcc just call cpp and 'as', and then stop. The linker won't 
> be engaged 
> in that game.

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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