Skip to content

Commit

Permalink
Fix CONFIG_ROMCODE build
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaerr committed Sep 3, 2024
1 parent 397964f commit d9d30af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions elks/arch/i86/tools/build.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;

Expand Down

0 comments on commit d9d30af

Please sign in to comment.