Don't crash when using the -u option to enter undefined symbols.
authorDavid Given <dg@cowlark.com>
Wed, 28 Dec 2016 23:49:55 +0000 (23:49 +0000)
committerDavid Given <dg@cowlark.com>
Wed, 28 Dec 2016 23:49:55 +0000 (23:49 +0000)
util/led/main.c

index 4ea0b0d..028bc3b 100644 (file)
@@ -328,7 +328,7 @@ makename(string)
 {
        static struct outname   namebuf;
 
-       namebuf.on_mptr = string;
+       namebuf.on_foff = string - core_position - mems[ALLOMODL].mem_base;
        namebuf.on_type = S_UND + S_EXT;
        namebuf.on_valu = (long)0;