From: Kevin O'Connor Date: Wed, 4 Nov 2009 00:52:04 +0000 (-0500) Subject: Verify 16bit code doesn't rely on any "discarded" sections. X-Git-Tag: rel-0.5.0~44 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=9eebe66a9978165cfa91f2266c97fa5d0aa6ef2e;p=seabios.git Verify 16bit code doesn't rely on any "discarded" sections. Add linker rule to catch cases where 16bit code tries to access a non-existent 32bit variable defined with VAR32VISIBLE. --- diff --git a/src/rombios16.lds.S b/src/rombios16.lds.S index f9046ad..07a6385 100644 --- a/src/rombios16.lds.S +++ b/src/rombios16.lds.S @@ -11,4 +11,5 @@ SECTIONS .text16 code16_start : { *(.text16) } + /DISCARD/ : { *(.discard*) } }