aboutsummaryrefslogtreecommitdiffstats
path: root/src/rombios.lds.S
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-12-28 21:37:27 -0500
committerKevin O'Connor <kevin@koconnor.net>2008-12-28 21:37:27 -0500
commit4a754b38ee5f8fa9539e49033063b1854d32ae3e (patch)
tree9ef3bd7318e17dfee2d0d80e608873ce7c4b769e /src/rombios.lds.S
parent4d7c37e12ef4ceb6903dd76ee700beb99fbf5f8e (diff)
downloadseabios-4a754b38ee5f8fa9539e49033063b1854d32ae3e.tar.gz
Add linker magic to ensure 16bit variables aren't repeated in 32bit code.
Add VAR16 macro to enable a variable to be available in both 32bit and 16bit code. This reduces the occurrences of "#if MODE16". Also add ASM16 macro to reduce occurrences of "#if MODE16".
Diffstat (limited to 'src/rombios.lds.S')
-rw-r--r--src/rombios.lds.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rombios.lds.S b/src/rombios.lds.S
index e3527ac1..1305c403 100644
--- a/src/rombios.lds.S
+++ b/src/rombios.lds.S
@@ -22,4 +22,5 @@ SECTIONS
final_code16_fixed_start = . ;
*(.text16.fixed.addr)
}
+ /DISCARD/ : { *(.discard.var16) }
}