diff --git a/crt0/crt0_mod_rom_header/app_megarom_header.s b/crt0/crt0_mod_rom_header/app_megarom_header.s index 349e1162..fc81e9fb 100644 --- a/crt0/crt0_mod_rom_header/app_megarom_header.s +++ b/crt0/crt0_mod_rom_header/app_megarom_header.s @@ -33,6 +33,7 @@ ;; ---- ordering segments for linker .area _HOME .area _CODE + .area _APPLCODE .area _INITIALIZER .area _GSINIT .area _GSFINAL diff --git a/crt0/crt0_mod_rom_header/app_rom_header.s b/crt0/crt0_mod_rom_header/app_rom_header.s index 11965221..bacf87a2 100644 --- a/crt0/crt0_mod_rom_header/app_rom_header.s +++ b/crt0/crt0_mod_rom_header/app_rom_header.s @@ -33,6 +33,7 @@ ;; ---- ordering segments for linker .area _HOME .area _CODE + .area _APPLCODE .area _INITIALIZER .area _GSINIT .area _GSFINAL diff --git a/mk/build.mk b/mk/build.mk index b106970b..4d859c71 100644 --- a/mk/build.mk +++ b/mk/build.mk @@ -258,6 +258,7 @@ PAD2POW2 = ${LIBMSX_HOME}/bin/pad2pow2.sh CFLAGS ?= CFLAGS += -mz80 -MMD CFLAGS += -I ${LIBMSX_HOME}/include +CFLAGS += --codeseg APPLCODE LIBMSX = ${LIBMSX_HOME}/lib/libmsx.lib