public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* Undefined References in crt0.S
@ 2000-10-20  7:23 Robert Floyd
  0 siblings, 0 replies; only message in thread
From: Robert Floyd @ 2000-10-20  7:23 UTC (permalink / raw)
  To: crossgcc

I created a basic linker script (maybe too basic) from examples and
information on the web.  Here is what I have:


OUTPUT_FORMAT("srec")
OUTPUT_ARCH(sh)

MEMORY
{
   rom : o = 0, l = 512k
}

SECTIONS
{
   .flash  0 :
	{
	  __ftext =  . ;
	  *(.text)
	  *(.strings)
	  __etext =	 . ;
	  __fdata =	 . ;
	  *(.data)
	  __edata =	 . ;
	}  > rom
}

However, this linker script gives me two errors that has some relation
to crt0.S:

../lib/crt0.o .... :crt0.S: undefined reference to '_edata'
../lib/crt0.o .... :crt0.S: undefined reference to '_end'

I notice that in my cmd linker script I have __fdata = . ; which I took
from an example.  Is this the line that crt0.S is looking for?  Does
anyone know where _end should be place and the syntax for it use? And
what is this file crt0.o?  Thanks for any help on this.

R.Floyd

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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

only message in thread, other threads:[~2000-10-20  7:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-20  7:23 Undefined References in crt0.S Robert Floyd

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).