public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* -e option
@ 2001-12-14  7:10 Phil Prentice
  0 siblings, 0 replies; only message in thread
From: Phil Prentice @ 2001-12-14  7:10 UTC (permalink / raw)
  To: gcc-help

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-12-14 15:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-14  7:10 -e option Phil Prentice

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).