This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

-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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]