Bug fix
authorRobert Pengelly <robertapengelly@hotmail.com>
Sat, 19 Apr 2025 09:17:15 +0000 (10:17 +0100)
committerRobert Pengelly <robertapengelly@hotmail.com>
Sat, 19 Apr 2025 09:17:15 +0000 (10:17 +0100)
link.c

diff --git a/link.c b/link.c
index bef6bb7eac0f6c2fac616827831041e8c34702c9..bebc2a2f47df9cedc60b84a4074ef4606fd0a76d 100644 (file)
--- 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;