Support .bss variables in 16bit code (ones that the 32bit code can set).
authorKevin O'Connor <kevin@koconnor.net>
Sat, 8 Nov 2008 15:36:16 +0000 (10:36 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 8 Nov 2008 15:36:16 +0000 (10:36 -0500)
Makefile
src/rombios16.lds.S

index b294ed923d9e64fe98f7ebfd033e42571fbe9b76..d5804f37a6edae86e2a8dc62956ba64b511519d3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -98,7 +98,7 @@ $(OUT)romlayout32.o: ; $(call whole-compile, $(CFLAGS), $(addprefix src/, $(SRC3
 
 $(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 $@"
index 43fcdef932bd8f78cd29a75704f0076f678146dc..d51d69c0dc69e2ed72d47f7eb7e75d3cd4d9b639 100644 (file)
@@ -16,6 +16,8 @@ SECTIONS
                 *(.text)
                 *(.rodata*)
                 *(.data)
+                *(.bss)
+                *(COMMON)
                 }
         freespace1_start = . ;
         code16_end = . ;