From ac53a749ac5adb555d119183ce557e47fb8265a6 Mon Sep 17 00:00:00 2001 From: Robert Pengelly Date: Sat, 19 Apr 2025 10:17:15 +0100 Subject: [PATCH] Bug fix --- link.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/link.c b/link.c index bef6bb7..bebc2a2 100644 --- a/link.c +++ b/link.c @@ -424,7 +424,7 @@ static void reloc_generic (struct section_part *part, struct reloc_entry *rel, s /*printf ("%lx\n", n_type);*/ - if (state->emulation == LD_EMULATION_IA16_ELKS || state->format == LD_EMULATION_IA16_MZ) { + if (state->emulation == LD_EMULATION_IA16_ELKS || state->emulation == LD_EMULATION_IA16_MZ) { if (opcode == 0x9A || opcode == 0xFF || rel->n_type == 4) { @@ -773,7 +773,7 @@ void link (void) { } - if (state->emulation == LD_EMULATION_IA16_ELKS || state->format == LD_EMULATION_IA16_MZ) { + if (state->emulation == LD_EMULATION_IA16_ELKS || state->emulation == LD_EMULATION_IA16_MZ) { value = 0; -- 2.34.1