Bug fixes master
authorRobert Pengelly <robertapengelly@hotmail.com>
Tue, 14 Jul 2026 19:23:12 +0000 (20:23 +0100)
committerRobert Pengelly <robertapengelly@hotmail.com>
Tue, 14 Jul 2026 19:23:12 +0000 (20:23 +0100)
coff.c
lib.c
link.c

diff --git a/coff.c b/coff.c
index e54e356087d572a1572ce6a729148cb3e9e9f317..3c13c0cefbb2fcbabda57a9c6aad6e65a31f0078 100644 (file)
--- a/coff.c
+++ b/coff.c
@@ -569,7 +569,7 @@ void read_coff_object (const char *filename, unsigned char *data, unsigned long
             
             }
             
-            i += coff_symbol->NumberOfAuxSymbols[1];
+            i += coff_symbol->NumberOfAuxSymbols[0];
         
         }
     
diff --git a/lib.c b/lib.c
index cea728c6b5424f651eeabb41480616e6d82127ec..ddb33a0b4327e7ba72d94860578441b8aa7ad695 100644 (file)
--- a/lib.c
+++ b/lib.c
@@ -370,18 +370,6 @@ static void use_option (const char *cmd_arg, int idx, const char *optarg) {
             
             }
             
-            if (xstrcasecmp (optarg, "elf-amd64") == 0) {
-            
-                state->format = LD_FORMAT_AMD64_PE;
-                
-                /*if (state->emulation == LD_EMULATION_NONE) {
-                    state->emulation = LD_EMULATION_I386_COFF;
-                }*/
-                
-                break;
-            
-            }
-            
             if (xstrcasecmp (optarg, "coff-i386") == 0) {
             
                 state->format = LD_FORMAT_I386_COFF;
diff --git a/link.c b/link.c
index 6250ccc92302f6bc6006ff97d08d8a47bcae6c62..a14070237107c1974e063af1a9a98ab26b7db067 100644 (file)
--- a/link.c
+++ b/link.c
@@ -468,8 +468,8 @@ static void check_unresolved (void) {
     struct object_file *of;
     struct symbol *symbol;
     
-    unsigned long i;
     unsigned long unresolved = 0;
+    unsigned long i;
     
     for (of = all_object_files; of; of = of->next) {