Change license from GPLv3 to LGPLv3.
[seabios.git] / src / rombios32.lds.S
index 532317e28e491b7bb5149e8606df1acf616f7c5c..6d735376c518e4944c98f7fbc36a914864cd4b25 100644 (file)
@@ -1,33 +1,26 @@
-// Linker definitions for 32bit code
+// Linker definitions for 32 bit code
 //
 // Copyright (C) 2008  Kevin O'Connor <kevin@koconnor.net>
-// Copyright (C) 2002  MandrakeSoft S.A.
 //
-// This file may be distributed under the terms of the GNU GPLv3 license.
+// This file may be distributed under the terms of the GNU LGPLv3 license.
 
 #include "config.h"
-#include "../out/rom16.offset.auto.h"
 
 OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
 OUTPUT_ARCH("i386")
-ENTRY(post32);
 SECTIONS
 {
-        . = (OFFSET_bios16c_end | 0xf0000);
-        . = ALIGN(16);
-        _text32_start = . ;
-        .text     : { *(.text)    }
-        .rodata   : { *(.rodata)  }
-        .data     : { *(.data)    }
-        // XXX - should change code so it doesn't require global variables.
-        . = 0x00040000;
-        __bss_start = . ;
-        .bss      : { *(.bss) *(COMMON) }
-        __bss_end = . ;
-        __call16_from32 = (0xf0000 | OFFSET___call16_from32) ;
-        /DISCARD/ : { *(.stab)
-                     *(.stabstr)
-                     *(.comment)
-                     *(.note)
-                  }
+        . = BUILD_BIOS_ADDR ;
+        code32_start = . ;
+        .text : {
+                *(.text)
+                code32_rodata = . ;
+                *(.rodata*)
+                *(.data)
+                . = ALIGN(16) ;
+                code32_bss = . ;
+                *(.bss)
+                *(COMMON)
+                }
+        code32_end = . ;
 }