This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more infromation.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |