-e option
Phil Prentice
PhilP@tsd.serco.com
Fri Dec 14 07:10:00 GMT 2001
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
More information about the Gcc-help
mailing list