From: Robert Pengelly Date: Tue, 14 Jul 2026 19:23:12 +0000 (+0100) Subject: Bug fixes X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=HEAD;p=slink.git Bug fixes --- diff --git a/coff.c b/coff.c index e54e356..3c13c0c 100644 --- 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 cea728c..ddb33a0 100644 --- 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 6250ccc..a140702 100644 --- 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) {