]> xenbits.xensource.com Git - seabios.git/commitdiff
Verify 16bit code doesn't rely on any "discarded" sections.
authorKevin O'Connor <kevin@koconnor.net>
Wed, 4 Nov 2009 00:52:04 +0000 (19:52 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 4 Nov 2009 00:52:04 +0000 (19:52 -0500)
Add linker rule to catch cases where 16bit code tries to access a
    non-existent 32bit variable defined with VAR32VISIBLE.

src/rombios16.lds.S

index f9046adc952b672feac06f306d742a9acb8b8a82..07a6385348e8e56c7d4de9222a703672e1561a92 100644 (file)
@@ -11,4 +11,5 @@ SECTIONS
         .text16 code16_start : {
                 *(.text16)
                 }
+        /DISCARD/ : { *(.discard*) }
 }