From d9d30af0975862ab091726b95cd655ee6b695b4a Mon Sep 17 00:00:00 2001 From: Greg Haerr Date: Mon, 2 Sep 2024 21:35:45 -0600 Subject: [PATCH] Fix CONFIG_ROMCODE build --- elks/arch/i86/tools/build.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/elks/arch/i86/tools/build.c b/elks/arch/i86/tools/build.c index 362025bb9..0874fdbe6 100644 --- a/elks/arch/i86/tools/build.c +++ b/elks/arch/i86/tools/build.c @@ -205,6 +205,7 @@ int main(int argc, char **argv) fprintf(stderr, "System is %d B (0x%x paras)\n", sz, sys_size); if (sys_size > DEF_SYSMAX) die("System is too big"); +#ifndef CONFIG_ROMCODE /* display start and end setup.S copy address for informational purposes */ fsz = (ex->a_hdrlen + (intel_long(ex->a_text) + intel_long(ex->a_data)) + 15) / 16; if (ex->a_hdrlen == SUPL_HEADER) { @@ -216,6 +217,7 @@ int main(int argc, char **argv) if (DEF_SYSSEG < REL_SYSSEG + 0x1000) { fprintf(stderr, "Warning: Load segment too low for REL_SYSSEG at %x, increase DEF_SYSSEG\n", REL_SYSSEG); } +#endif while (sz > 0) { int32_t l, n;