Support .bss variables in 16bit code (ones that the 32bit code can set).
diff --git a/Makefile b/Makefile
index b294ed9..d5804f3 100644
--- a/Makefile
+++ b/Makefile
@@ -98,7 +98,7 @@
$(OUT)rom32.o: $(OUT)romlayout32.o $(OUT)rombios32.lds
@echo " Linking (no relocs) $@"
- $(Q)$(LD) -r -T $(OUT)rombios32.lds $< -o $@
+ $(Q)$(LD) -r -d -T $(OUT)rombios32.lds $< -o $@
$(OUT)rom16.o: $(OUT)romlayout16.o $(OUT)rom32.o $(OUT)rombios16.lds
@echo " Linking $@"
diff --git a/src/rombios16.lds.S b/src/rombios16.lds.S
index 43fcdef..d51d69c 100644
--- a/src/rombios16.lds.S
+++ b/src/rombios16.lds.S
@@ -16,6 +16,8 @@
*(.text)
*(.rodata*)
*(.data)
+ *(.bss)
+ *(COMMON)
}
freespace1_start = . ;
code16_end = . ;