diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2001-05-02 16:42:55 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2001-05-02 16:42:55 +0000 |
commit | d1b2b2dcb9990cc1b113ce35fe9ebe120d34b1c3 (patch) | |
tree | 1b9443e600a2baea4f6e474bbbf51aa384bb04fb /ld/ldlang.c | |
parent | 5cb1517bba5802b8b14e2ed42cffdaee788704df (diff) | |
download | gdb-d1b2b2dcb9990cc1b113ce35fe9ebe120d34b1c3.zip gdb-d1b2b2dcb9990cc1b113ce35fe9ebe120d34b1c3.tar.gz gdb-d1b2b2dcb9990cc1b113ce35fe9ebe120d34b1c3.tar.bz2 |
2001-05-02 H.J. Lu <hjl@gnu.org>
* ldfile.c: Include "libiberty.h".
* ldlex.l: Likewise.
* ldmisc.c (buystring): Removed.
* ldmisc.h: Likewise.
* ldfile.c: Replace buystring with xstrdup.
* ldlang.c: Likewise.
* ldlex.l: Likewise.
* ldmain.c: Likewise.
* ldmisc.c: Likewise.
* lexsup.c: Likewise.
* mpw-eppcmac.c: Likewise.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index 21e540e..a89fcf6 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -623,7 +623,7 @@ lang_memory_region_lookup (name) lang_memory_region_type *new = (lang_memory_region_type *) stat_alloc (sizeof (lang_memory_region_type)); - new->name = buystring (name); + new->name = xstrdup (name); new->next = (lang_memory_region_type *) NULL; *lang_memory_region_list_tail = new; @@ -1994,7 +1994,7 @@ ldlang_add_undef (name) new->next = ldlang_undef_chain_list_head; ldlang_undef_chain_list_head = new; - new->name = buystring (name); + new->name = xstrdup (name); } /* Run through the list of undefineds created above and place them |