﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
47	Create .sym files directly from emxomfld	Yuri Dario	bird	"This patch allows emxomfld to produce a .sym file directly when -Zsym is specified on command line; also -Zmap is required.

To be complete it requires gcc.exe to pass -Zsym to emxomfld, actually not done.

{{{
Index: emxomfld.c
===================================================================
--- emxomfld.c	(revision 2508)
+++ emxomfld.c	(working copy)
@@ -64,6 +64,9 @@
 static const char *map_fname = NULL;
 static int map_flag = FALSE;
 
+/* The sym file output flag, set by the -Zsym option. */
+static int sym_flag = FALSE;
+
 /* The module definition file name (input), set if a file matching
    *.def is given on the command line. */
 static const char *def_fname = NULL;
@@ -1947,6 +1959,21 @@
       free (t);
     }
 
+  /* Run mapsym if everything is ok until now. */
+  if (rc == 0 && sym_flag == TRUE)
+    {
+      arg_init (TRUE);
+      put_arg (""mapsym.exe"", TRUE, FALSE);
+      put_arg (map_fname, TRUE, FALSE);
+      arg_end ();
+      rc = emxomfld_spawn (command_line, ""Mapsym"");
+      if (rc < 0)
+        {
+          perror (""emxomfld: mapsym"");
+          exit (2);
+        }
+    }
+
   /* Return the return code of Linker or RC. */
 
   return rc;

}}}
"	enhancement	closed	normal	libc-0.6.2	emx	0.6	normal	fixed		
