aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-11-08 10:36:16 -0500
committerKevin O'Connor <kevin@koconnor.net>2008-11-08 10:36:16 -0500
commit1b7d8843268e83c8d21fa35d8869005c7cd6952f (patch)
treed1ae82175e1cbdaabd2b7e7c40b1f03f818bcaec
parent7b49cd9418a57d7845def97dcb33d17e399e3d91 (diff)
downloadseabios-hppa-1b7d8843268e83c8d21fa35d8869005c7cd6952f.zip
seabios-hppa-1b7d8843268e83c8d21fa35d8869005c7cd6952f.tar.gz
seabios-hppa-1b7d8843268e83c8d21fa35d8869005c7cd6952f.tar.bz2
Support .bss variables in 16bit code (ones that the 32bit code can set).
-rw-r--r--Makefile2
-rw-r--r--src/rombios16.lds.S2
2 files changed, 3 insertions, 1 deletions
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 = . ;