From: Kevin O'Connor Date: Sat, 8 Nov 2008 15:36:16 +0000 (-0500) Subject: Support .bss variables in 16bit code (ones that the 32bit code can set). X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=1b7d8843268e83c8d21fa35d8869005c7cd6952f;p=seabios.git 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)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 $@" 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 @@ SECTIONS *(.text) *(.rodata*) *(.data) + *(.bss) + *(COMMON) } freespace1_start = . ; code16_end = . ;