summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-12-29 20:42:40 -0500
committerKevin O'Connor <kevin@koconnor.net>2008-12-29 20:42:40 -0500
commit92f95b0fecca029a0c4dd81203e6b42f60c4a382 (patch)
tree63a9bb2ff504decebbfd73d3a41d22d7c7aaf4be /Makefile
parentc659fdedadce1566308675d0c44537ade0eb12a2 (diff)
Add more linker protections around variables accessed from 16bit mode.
Rename VAR16 to VAR16_32 -- that macro supports accesses from both 16bit and 32bit mode. Introduce a new macro VAR16 that must be present on all global variables accessed from 16bit mode.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 24c67c2..3a24433 100644
--- a/Makefile
+++ b/Makefile
@@ -76,7 +76,7 @@ endif
$(OUT)%.proc.16.s: $(OUT)%.16.s
@echo " Moving data sections to text in $@"
- $(Q)sed 's/\t\.section\t\.rodata.*// ; s/\t\.data//' < $< > $@
+ $(Q)sed 's/^\t\.section\t\.\(ro\)\?data.*// ; s/^\t\.data$$//' < $< > $@
$(OUT)%.16.s: %.c
@echo " Compiling to assembler $@"