blob: 099cae9d8a01a6a04f4cb0441c4ec442333647f7 [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
30/*
31ENTRY(_start)
32*/
33
34TARGET(binary)
35SECTIONS
36{
37 . = CONFIG_ROMBASE;
38
39 /* This section might be better named .setup */
40 .rom . : {
41 _rom = .;
42 *(.rom.text);
43 *(.rom.data);
44 *(.rom.data.*);
45 *(.rodata.*);
46 . = ALIGN(16);
47 _erom = .;
48 }
49
50 _lrom = LOADADDR(.rom);
51 _elrom = LOADADDR(.rom) + SIZEOF(.rom);
52
53 /DISCARD/ : {
54 *(.comment)
55 *(.note)
56 *(.comment.*)
57 *(.note.*)
58 }
59}