diff --git a/f256lib/f256.h b/f256lib/f256.h index 2cf6e5c..34c4127 100644 --- a/f256lib/f256.h +++ b/f256lib/f256.h @@ -139,7 +139,6 @@ typedef struct colorS { ".global " IBSTR(name) "_end\n" \ ".balign 1\n" \ IBSTR(name) "_end:\n" \ - ".byte 0\n" \ ); \ extern __attribute__((aligned(16))) const char name ## _start[]; \ extern const char name ## _end[] diff --git a/tools/overlay/overlay.c b/tools/overlay/overlay.c index 0f94ac5..dbbae13 100644 --- a/tools/overlay/overlay.c +++ b/tools/overlay/overlay.c @@ -618,7 +618,7 @@ int main(int argc, char *argv[]) { free(targetFile); if (in != NULL) { fseek(in, 0, SEEK_END); - length = ftell(in) + 1; // Without the +1 the linker will overflow the segment. + length = ftell(in); fclose(in); break; }