This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
-e option
- From: "Phil Prentice" <PhilP at tsd dot serco dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 14 Dec 2001 15:05:34 +0000
- Subject: -e option
Hi
I have built a cross compiler (ld version 2.11.2)for the vxworks and I am trying to use the linker in the following manner.
m68k-wrs-vxworks-ld -r -e _main -o tmp tmp.o libPROG.a
Unfortunatly main exists in libPROG.a. So after I have built tmp the symbol _main does not exist in the symbol table. If I refer to a function (called from tmp.c) that does exist in the same file as main within libPROG.a I then get _main in the symbol table.
Presumably if I specify -e _main on the command line, then I should get _main in the symbol table???
Or am I totally mis-understanding whats going on?
Is this a bug or do I need to add some further flags?
Thanks for your help
Phil Prentice