ld crashes when map files are enabled
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");
Change History
(3)
Resolution: |
→ duplicate
|
Status: |
new → closed
|
Milestone: |
libc-0.6.1
|
Version: |
→ 0.6
|
Duplicate of #27.