Custom Query (245 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (4 - 6 of 245)

1 2 3 4 5 6 7 8 9 10 11 12
Ticket Resolution Summary Owner Reporter
#27 fixed ld bug when map files are requested bird Yuri Dario
Description

In write_output(), map file name overwrites memory because of wrong allocation. At line 3985, correct code is

if (map_filename == NULL)

{

freeav[j++] = map_filename = ALLOCA (strlen (exe_filename) + 5); strcpy (map_filename, exe_filename); _remext (map_filename); strcat (map_filename, ".map");

}

#28 fixed emxbind doesn't read library name from .def file bird Yuri Dario
Description

The module name used by emxbind when building dynamic libraries is not read from .def file: it is built from output name, but this prevents dotted names for the dll.

This change to emxbind.c allows using LIBRARY name from def file:

case _MD_LIBRARY:

/* Create a DLL. Save the initialization and termination

policies after choosing default values for unspecified values. */

if (stmt->library.name[0] != 0)

module_name = xstrdup (stmt->library.name);

#35 duplicate ld crashes when map files are enabled bird Yuri Dario
Description

ld crashes when map file name differs from module name, because of wrong memory allocation.

Index: src/ld/ld.c
===================================================================
--- src/ld/ld.c	(revision 2508)
+++ src/ld/ld.c	(working copy)
@@ -3984,7 +3984,7 @@
 	{
 	  if (map_filename == NULL)
 	    {
-	      freeav[j++] = map_filename = ALLOCA (strlen (output_filename) + 5);
+	      freeav[j++] = map_filename = ALLOCA (strlen (exe_filename) + 5);
               strcpy (map_filename, exe_filename);
 	      _remext (map_filename);
 	      strcat (map_filename, ".map");

1 2 3 4 5 6 7 8 9 10 11 12
Note: See TracQuery for help on using queries.