blob: deec710209e45e07bfa079c33b7b96987a37099a [file] [log] [blame]
Patrick Georgi3c970ee2010-02-19 19:59:03 +00001/*
2 * Memory map:
3 *
4 * CONFIG_RAMBASE
5 * : data segment
6 * : bss segment
7 * : heap
8 * : stack
9 * CONFIG_ROMBASE
10 * : coreboot text
11 * : readonly text
12 */
13/*
14 * Bootstrap code for the STPC Consumer
15 * Copyright (c) 1999 by Net Insight AB. All Rights Reserved.
16 *
17 */
18
19/*
20 * Written by Johan Rydberg, based on work by Daniel Kahlin.
21 * Rewritten by Eric Biederman
22 */
23/*
24 * We use ELF as output format. So that we can
25 * debug the code in some form.
26 */
27OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
28OUTPUT_ARCH(i386)
29
Patrick Georgi1c1d9a02010-02-23 19:38:44 +000030MEMORY {
31 rom : ORIGIN = 0xffff0000, LENGTH = 64K
32}
Patrick Georgi3c970ee2010-02-19 19:59:03 +000033
34TARGET(binary)
35SECTIONS
36{
Patrick Georgi1c1d9a02010-02-23 19:38:44 +000037 . = 0;
Patrick Georgi3c970ee2010-02-19 19:59:03 +000038
39 /* This section might be better named .setup */
Patrick Georgi1c1d9a02010-02-23 19:38:44 +000040 .rom ROMLOC : {
Patrick Georgi3c970ee2010-02-19 19:59:03 +000041 _rom = .;
42 *(.rom.text);
43 *(.rom.data);
44 *(.rom.data.*);
45 *(.rodata.*);
Patrick Georgi3c970ee2010-02-19 19:59:03 +000046 _erom = .;
Patrick Georgi1c1d9a02010-02-23 19:38:44 +000047 } >rom =0xff
Patrick Georgi3c970ee2010-02-19 19:59:03 +000048
Patrick Georgi1c1d9a02010-02-23 19:38:44 +000049 ROMLOC = 0xffffff00 - (_erom - _rom) + 1;
Patrick Georgi3c970ee2010-02-19 19:59:03 +000050
51 /DISCARD/ : {
52 *(.comment)
53 *(.note)
54 *(.comment.*)
55 *(.note.*)
Patrick Georgi1c1d9a02010-02-23 19:38:44 +000056 *(.iplt)
57 *(.rel.*)
58 *(.igot.*)
Patrick Georgi3c970ee2010-02-19 19:59:03 +000059 }
60}