mptable: Reset pinmask on new bus or device.
[seabios.git] / src / rombios16.lds.S
index d51d69c0dc69e2ed72d47f7eb7e75d3cd4d9b639..d4e7648943e0998cd572a158ff6c7970d7c42a6e 100644 (file)
@@ -1,32 +1,18 @@
 // Linker definitions for 16bit code
 //
-// Copyright (C) 2008  Kevin O'Connor <kevin@koconnor.net>
+// Copyright (C) 2008,2009  Kevin O'Connor <kevin@koconnor.net>
 //
-// This file may be distributed under the terms of the GNU GPLv3 license.
-
-#include "config.h"
+// This file may be distributed under the terms of the GNU LGPLv3 license.
 
 OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
 OUTPUT_ARCH("i386")
 SECTIONS
 {
-        . = ( _code32_code32_end - BUILD_BIOS_ADDR ) ;
-        code16_start = . ;
-        .text16 : {
-                *(.text)
-                *(.rodata*)
-                *(.data)
-                *(.bss)
-                *(COMMON)
+        .data16 data16_start : {
+                *(.data16)
                 }
-        freespace1_start = . ;
-        code16_end = . ;
-
-        . = BUILD_START_FIXED ;
-        code16_fixed_start = . ;
-        freespace1_end = . ;
-        .text16.fixed.addr : {
-                *(.text.fixed.addr)
+        .text16 text16_start : {
+                *(.text16)
                 }
-        code16_fixed_end = . ;
+        /DISCARD/ : { *(.discard*) }
 }