[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] '-e' parameter in gcc



Miro, does the first linker warning go away if you use "-e _main"?
It does not:

[mikro@workmachine m68k]$ m68k-atari-mint-gcc -nostdlib -e _main conftest.c 
/tmp/ccOfZnR2.o:/tmp/ccOfZnR2.o:(.text+0x6): undefined reference to `___main'
collect2: ld returned 1 exit status

And if you compile a source code without main() and give the name of
the included function name with "-e", does the second error go away?
This was a neat idea:

[mikro@workmachine m68k]$ m68k-atari-mint-gcc -nostdlib -e xmain conftest.c 
/home/mikro/gnu-tools/lib/gcc/m68k-atari-mint/4.5.1/../../../../m68k-atari-mint/bin/ld: warning: cannot find entry symbol xmain; defaulting to 000000e4
[mikro@workmachine m68k]$ m68k-atari-mint-gcc -nostdlib -e _xmain conftest.c 
[mikro@workmachine m68k]$ 

So, according this example, "-e _main" should work but it does not.

--
MiKRO / Mystic Bytes
http://mikro.atari.org