From a7c1bdc4cd70a30294e3e27e5e5ddf7c4bdfdb26 Mon Sep 17 00:00:00 2001 From: Scott Duensing Date: Thu, 23 May 2024 17:28:27 -0500 Subject: [PATCH] Removed extra byte on embeds. --- f256lib/f256.h | 1 - tools/overlay/overlay.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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; }