summaryrefslogtreecommitdiff
path: root/ld/lexsup.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-05-02 16:42:55 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-05-02 16:42:55 +0000
commitd1b2b2dcb9990cc1b113ce35fe9ebe120d34b1c3 (patch)
tree1b9443e600a2baea4f6e474bbbf51aa384bb04fb /ld/lexsup.c
parent5cb1517bba5802b8b14e2ed42cffdaee788704df (diff)
downloadbinutils-gdb-d1b2b2dcb9990cc1b113ce35fe9ebe120d34b1c3.tar.gz
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/lexsup.c')
-rw-r--r--ld/lexsup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c
index fb2e3f53dec..30e1665540c 100644
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -816,7 +816,7 @@ parse_args (argc, argv)
/* Fall through. */
case OPTION_RPATH:
if (command_line.rpath == NULL)
- command_line.rpath = buystring (optarg);
+ command_line.rpath = xstrdup (optarg);
else
{
size_t rpath_len = strlen (command_line.rpath);
@@ -853,7 +853,7 @@ parse_args (argc, argv)
break;
case OPTION_RPATH_LINK:
if (command_line.rpath_link == NULL)
- command_line.rpath_link = buystring (optarg);
+ command_line.rpath_link = xstrdup (optarg);
else
{
char *buf;