CRIS v32: Update boot/rescue/rescue.ld

- Update to work for ETRAX FS and ARTPEC-3
This commit is contained in:
Jesper Nilsson 2008-01-25 16:05:55 +01:00
parent 45a4127c10
commit 14e61bebb4
1 changed files with 30 additions and 7 deletions

View File

@ -1,20 +1,43 @@
/*#OUTPUT_FORMAT(elf32-us-cris) */
OUTPUT_ARCH (crisv32)
/* Now that NAND support has been stripped, this file could be simplified,
* but it doesn't do any harm on the other hand so why bother. */
MEMORY MEMORY
{ {
flash : ORIGIN = 0x00000000, bootblk : ORIGIN = 0x38000000,
LENGTH = 0x00100000 LENGTH = 0x00004000
intmem : ORIGIN = 0x38004000,
LENGTH = 0x00005000
} }
SECTIONS SECTIONS
{ {
.text : .text :
{ {
stext = . ; _stext = . ;
*(.text) *(.text)
etext = . ; *(.init.text)
} > flash *(.rodata)
*(.rodata.*)
_etext = . ;
} > bootblk
.data : .data :
{ {
*(.data) *(.data)
edata = . ; _edata = . ;
} > flash } > bootblk
.bss :
{
_bss = . ;
*(.bss)
_end = ALIGN( 0x10 ) ;
} > intmem
/* Get rid of stuff from EXPORT_SYMBOL(foo). */
/DISCARD/ :
{
*(__ksymtab_strings)
*(__ksymtab)
}
} }