2010-02-19 20:59:03 +01:00
|
|
|
/*
|
|
|
|
* Memory map:
|
|
|
|
*
|
|
|
|
* CONFIG_RAMBASE
|
|
|
|
* : data segment
|
|
|
|
* : bss segment
|
|
|
|
* : heap
|
|
|
|
* : stack
|
|
|
|
* CONFIG_ROMBASE
|
|
|
|
* : coreboot text
|
|
|
|
* : readonly text
|
|
|
|
*/
|
|
|
|
/*
|
|
|
|
* Bootstrap code for the STPC Consumer
|
|
|
|
* Copyright (c) 1999 by Net Insight AB. All Rights Reserved.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Written by Johan Rydberg, based on work by Daniel Kahlin.
|
|
|
|
* Rewritten by Eric Biederman
|
|
|
|
*/
|
|
|
|
/*
|
|
|
|
* We use ELF as output format. So that we can
|
|
|
|
* debug the code in some form.
|
|
|
|
*/
|
|
|
|
OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
|
|
|
|
OUTPUT_ARCH(i386)
|
|
|
|
|
2010-02-23 20:38:44 +01:00
|
|
|
MEMORY {
|
|
|
|
rom : ORIGIN = 0xffff0000, LENGTH = 64K
|
|
|
|
}
|
2010-02-19 20:59:03 +01:00
|
|
|
|
|
|
|
TARGET(binary)
|
|
|
|
SECTIONS
|
|
|
|
{
|
2010-02-23 20:38:44 +01:00
|
|
|
. = 0;
|
2010-02-19 20:59:03 +01:00
|
|
|
|
|
|
|
/* This section might be better named .setup */
|
2010-02-23 20:38:44 +01:00
|
|
|
.rom ROMLOC : {
|
2010-02-19 20:59:03 +01:00
|
|
|
_rom = .;
|
|
|
|
*(.rom.text);
|
|
|
|
*(.rom.data);
|
|
|
|
*(.rom.data.*);
|
|
|
|
*(.rodata.*);
|
|
|
|
_erom = .;
|
2010-02-23 20:38:44 +01:00
|
|
|
} >rom =0xff
|
2010-02-19 20:59:03 +01:00
|
|
|
|
2010-02-23 20:38:44 +01:00
|
|
|
ROMLOC = 0xffffff00 - (_erom - _rom) + 1;
|
2010-02-19 20:59:03 +01:00
|
|
|
|
|
|
|
/DISCARD/ : {
|
|
|
|
*(.comment)
|
|
|
|
*(.note)
|
|
|
|
*(.comment.*)
|
|
|
|
*(.note.*)
|
2010-02-23 20:38:44 +01:00
|
|
|
*(.iplt)
|
|
|
|
*(.rel.*)
|
|
|
|
*(.igot.*)
|
2010-02-19 20:59:03 +01:00
|
|
|
}
|
|
|
|
}
|