This patch unifies the use of config options in v2 to all start with CONFIG_
[coreboot.git] / src / arch / i386 / init / ldscript_failover.lb
1 /*
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  */
27 OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
28 OUTPUT_ARCH(i386)
29
30 /*
31 ENTRY(_start)
32 */
33
34 TARGET(binary)
35 SECTIONS
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 }