From: Alan Cox Date: Mon, 13 Nov 2017 14:15:02 +0000 (+0000) Subject: ld: add more useful symbols, allow for bigendian testing X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=24aebd9f6084f3a6fb52edf2d3d58a53b174490d;p=FUZIX.git ld: add more useful symbols, allow for bigendian testing --- diff --git a/Applications/MWC/cmd/asz80/ld.c b/Applications/MWC/cmd/asz80/ld.c index 0a2c8abd..657486ff 100644 --- a/Applications/MWC/cmd/asz80/ld.c +++ b/Applications/MWC/cmd/asz80/ld.c @@ -372,8 +372,7 @@ static void compatible_obj(struct objhdr *oh) exit(1); } if (oh->o_flags & OF_BIGENDIAN) { - fprintf(stderr, "Big endian not yet supported.\n"); - exit(1); + fprintf(stderr, "Warning: Big endian not tested.\n"); } obj_flags = oh->o_flags; } @@ -500,6 +499,9 @@ static void set_segment_bases(void) insert_internal_symbol("__data", DATA, 0); insert_internal_symbol("__bss", BSS, 0); insert_internal_symbol("__end", BSS, size[3]); + insert_internal_symbol("__code_size", ABSOLUTE, size[1]); + insert_internal_symbol("__data_size", ABSOLUTE, size[2]); + insert_internal_symbol("__bss_size", ABSOLUTE, size[3]); } /* Now set the base of each object appropriately */ memcpy(&pos, &base, sizeof(pos));