[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] '-e' parameter in gcc
Eero Tamminen <oak@helsinkinet.fi> writes:
>> /home/mikro/gnu-tools/lib/gcc/m68k-atari-mint/4.5.1/../../../../m68k-
> atari-mint/bin/ld: warning: cannot find entry symbol main; defaulting to
>> 000000e4
>>
>> /tmp/cc4HfuQ9.o:/tmp/cc4HfuQ9.o:(.text+0x6): undefined reference to
>> `___main'
>> collect2: ld returned 1 exit status
>
> Sp... neither of these warnings should be generarated for the program;
> main() is there so it should be found and because -nostdlib was used, no
> references to __main should be required?
A C file that defines the main function will be compiled into an object
file defining the symbol _main and referencing the symbol __main.
> I guess Atari gcc and linker seem to have different interpretation on symbol
> naming, at least in the case of "-e" option...?
The compiler driver does not interpret the -e option in any way. It is
passed to the linker unchanged.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."