Add auto-generated version info to each build.
[seabios.git] / src / rombios.lds.S
index 61a04c4623fc4d8aa2774cf1d54c6a517f020724..3d59fad4b531b910547fe7acc8e3563e026518b1 100644 (file)
@@ -1,22 +1,24 @@
 // Linker definitions for merging 16 and 32 bit 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 LGPLv3 license.
 
-#include "config.h"
-
 OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
 OUTPUT_ARCH("i386")
-ENTRY(post32);
+ENTRY(post32)
 SECTIONS
 {
         .text code32_start : {
-                *(.text)
+                *(.text32)
+                *(.data32.version)
 
                 . = code16_start ;
                 *(.text16)
                 final_code16_end = . ;
                 }
-        /DISCARD/ : { *(.discard*) }
+        /DISCARD/ : {
+                *(.text*) *(.data*) *(.bss*) *(.rodata*)
+                *(COMMON) *(.discard*) *(.eh_frame)
+                }
 }