From: Robert Pengelly Date: Sat, 19 Apr 2025 09:17:15 +0000 (+0100) Subject: Bug fix X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=ac53a749ac5adb555d119183ce557e47fb8265a6;p=slink.git Bug fix --- 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;