mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 11:39:26 +08:00
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.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
2009-09-03 Tristan Gingold <gingold@adacore.com>
|
||||||
|
|
||||||
* as.h (__PRETTY_FUNCTION__): Use the same definition as bfd/libbfd.h.
|
* as.h (__PRETTY_FUNCTION__): Use the same definition as bfd/libbfd.h.
|
||||||
|
@ -11667,7 +11667,7 @@ ia64_vms_note (void)
|
|||||||
subsegT subseg = now_subseg;
|
subsegT subseg = now_subseg;
|
||||||
Elf_Internal_Note i_note;
|
Elf_Internal_Note i_note;
|
||||||
asection *secp = NULL;
|
asection *secp = NULL;
|
||||||
char *basec, *bname;
|
char *bname;
|
||||||
char buf [256];
|
char buf [256];
|
||||||
symbolS *sym;
|
symbolS *sym;
|
||||||
|
|
||||||
@ -11679,8 +11679,7 @@ ia64_vms_note (void)
|
|||||||
SEC_HAS_CONTENTS | SEC_READONLY);
|
SEC_HAS_CONTENTS | SEC_READONLY);
|
||||||
|
|
||||||
/* Module header note. */
|
/* Module header note. */
|
||||||
basec = xstrdup (out_file_name);
|
bname = xstrdup (lbasename (out_file_name));
|
||||||
bname = basename (basec);
|
|
||||||
if ((p = strrchr (bname, '.')))
|
if ((p = strrchr (bname, '.')))
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
|
|
||||||
@ -11709,6 +11708,7 @@ ia64_vms_note (void)
|
|||||||
|
|
||||||
p = frag_more (strlen (bname) + 1);
|
p = frag_more (strlen (bname) + 1);
|
||||||
strcpy (p, bname);
|
strcpy (p, bname);
|
||||||
|
free (bname);
|
||||||
|
|
||||||
p = frag_more (5);
|
p = frag_more (5);
|
||||||
strcpy (p, "V1.0");
|
strcpy (p, "V1.0");
|
||||||
|
Reference in New Issue
Block a user