aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2018-10-13 00:13:30 -0700
committerH. Peter Anvin <hpa@zytor.com>2018-10-13 00:13:30 -0700
commitc2834e2fa23abccbdb6a9fc9b91eb7e03f95d006 (patch)
tree32091b8d93756ea878fa6e72d2295e3679bd8c52
parent5b8f7ad55b68e1f41171177a61a13cbbd3ca70cc (diff)
downloadabcdisk-c2834e2fa23abccbdb6a9fc9b91eb7e03f95d006.tar.gz
abcdisk-c2834e2fa23abccbdb6a9fc9b91eb7e03f95d006.tar.xz
abcdisk-c2834e2fa23abccbdb6a9fc9b91eb7e03f95d006.zip
bac800: reloc offset expression for bac800d is bogus, just put it as 0
The reloc offset expression for bac800d makes no sense whatsoever, and just happens to have the correct numeric value (0). Since for bac800d the output is not contiguous with the loader, we can't have internal relocations anyway.
-rw-r--r--bac800.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bac800.c b/bac800.c
index a4b990b..2418685 100644
--- a/bac800.c
+++ b/bac800.c
@@ -25,7 +25,7 @@ int writebac800(FILE * out, const uint8_t * data, int len, int origin,
if (driver) {
loader = bac800d_bin;
loaderlen = sizeof bac800d_bin;
- relocoffset = bac800d_SYM__end - bac800d_SYM_reloc_data;
+ relocoffset = 0;
set16(loader + bac800d_SYM_ENTRY, entrypoint);
} else {
loader = bac800_bin;