* config/tc-ia64.c (ia64_vms_note): Use lbasename instead of basename.
Call xstrdup on the result and free the buffer after use.
2009-09-03 Tristan Gingold <gingold@adacore.com>
+ * config/tc-ia64.c (ia64_vms_note): Use lbasename instead of basename.
+ Call xstrdup on the result and free the buffer after use.
+
+2009-09-03 Tristan Gingold <gingold@adacore.com>
+
* as.h (__PRETTY_FUNCTION__): Use the same definition as bfd/libbfd.h.
2009-09-02 Jie Zhang <jie.zhang@analog.com>
subsegT subseg = now_subseg;
Elf_Internal_Note i_note;
asection *secp = NULL;
- char *basec, *bname;
+ char *bname;
char buf [256];
symbolS *sym;
SEC_HAS_CONTENTS | SEC_READONLY);
/* Module header note. */
- basec = xstrdup (out_file_name);
- bname = basename (basec);
+ bname = xstrdup (lbasename (out_file_name));
if ((p = strrchr (bname, '.')))
*p = '\0';
p = frag_more (strlen (bname) + 1);
strcpy (p, bname);
+ free (bname);
p = frag_more (5);
strcpy (p, "V1.0");