[ECOS] arm-elf-gcc comprehension

Jonathan Larmour jlarmour@redhat.com
Fri Jun 29 07:22:00 GMT 2001


Jesper Skov wrote:
> 
> >>>>> "ANDRE" == ANDRE Sébastien <sebastien.andre@sxb.bsf.alcatel.fr> writes:
> 
> ANDRE> WHAT IS HAPPENED !!!??? Why it's an elf-executable ? and not an
> ANDRE> object file ???
> 
> All object files are ELF files.

Heh. Yes, and presumably becaues the sim is happy with the offsets from 0
it all works even though it hasn't been relocated.

As for why it didn't work without being full linked, I would say that for:

arm-elf-gcc -Wl,--gc-sections -o test test.o -nostdlib

if you aren't linking in crt0.o (due to -nostdlib) then there's no
reference to main. The tools should complain, but for some reason they
aren't.

This is off-topic for the eCos list anyway.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
Come to the Red Hat TechWorld open source conference in Brussels!
Keynotes, techie talks and exhibitions    http://www.redhat-techworld.com/



More information about the Ecos-discuss mailing list