- To reduce confuse rename the parts of linuxbios bios that run from
[coreboot.git] / src / arch / i386 / init / ldscript.lb
index 1af399cf81da16118c1bd0972392067410dd899e..ba8078b005da07511d357602b0cd930bae00579c 100644 (file)
@@ -30,10 +30,17 @@ OUTPUT_ARCH(i386)
 ENTRY(_start)
 
 TARGET(binary)
-INPUT(linuxbios_payload)
+INPUT(linuxbios_ram.rom)
 SECTIONS
 {
        . = _ROMBASE;
+       
+       .ram . : {
+               _ram = . ;
+               linuxbios_ram.rom(*)
+               _eram = . ;
+       }
+
        /* This section might be better named .setup */
        .rom . : {
                _rom = .;
@@ -42,18 +49,13 @@ SECTIONS
                . = ALIGN(16);
                _erom = .;
        }
+
        _lrom = LOADADDR(.rom);
        _elrom = LOADADDR(.rom) + SIZEOF(.rom);
-       
-       .payload . : {
-               _payload = . ;
-               linuxbios_payload(*)
-               _epayload = . ;
-       }
        _iseg = _RAMBASE;
-       _eiseg = _iseg + SIZEOF(.payload);
-       _liseg = _payload;
-       _eliseg = _epayload;
+       _eiseg = _iseg + SIZEOF(.ram);
+       _liseg = _ram;
+       _eliseg = _eram;
 
        /DISCARD/ : {
                *(.comment)