From 9eebe66a9978165cfa91f2266c97fa5d0aa6ef2e Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 3 Nov 2009 19:52:04 -0500 Subject: [PATCH] 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. --- src/rombios16.lds.S | 1 + 1 file changed, 1 insertion(+) 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*) } } -- 2.39.5