Opened 19 years ago
Closed 19 years ago
#46 closed defect (fixed)
ilink map file name is wrong when multiple dots are in target name
Reported by: | Yuri Dario | Owned by: | bird |
---|---|---|---|
Priority: | normal | Milestone: | libc-0.6.1 |
Component: | emx | Version: | 0.6 |
Severity: | normal | Keywords: | |
Cc: |
Description
When the target name has multiple dots (e.g. my.code.dll), ilink will generate a map file without proper extension (e.g. my.code). Patch will force .map extension if map file name is not specified on command line.
Index: emxomfld.c =================================================================== --- emxomfld.c (revision 2508) +++ emxomfld.c (working copy) @@ -1659,6 +1659,9 @@ { t = xstrdup (output_fname); _remext (t); + //yd if module name has multiple dots, ilink will not add .map extension + //so I'll force it here + strcat( t, ".map"); map_fname = t; }
Note:
See TracTickets
for help on using tickets.
if the filename was wihtout an extension the strcat may cause a heapoverrun. Applied with that fixed.