X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=bfd%2Fvms-lib.c;h=dbacc33e975e5130610fccb3113189792389e309;hb=3f9034c204cf1845d2f2d94f906a8573183831ba;hp=56b80ad58ce07dd1a6d8efe33d49ae3f1d131b19;hpb=06e7acd76f7f0e6b64164d30451d02a2a7dbfbb6;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/vms-lib.c b/bfd/vms-lib.c index 56b80ad58c..dbacc33e97 100644 --- a/bfd/vms-lib.c +++ b/bfd/vms-lib.c @@ -1,6 +1,6 @@ /* BFD back-end for VMS archive files. - Copyright 2010, 2011, 2012 Free Software Foundation, Inc. + Copyright (C) 2010-2014 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. @@ -25,6 +25,7 @@ #include "libbfd.h" #include "safe-ctype.h" #include "bfdver.h" +#include "libiberty.h" #include "vms.h" #include "vms/lbr.h" #include "vms/dcx.h" @@ -630,7 +631,7 @@ _bfd_vms_lib_archive_p (bfd *abfd, enum vms_lib_kind kind) err: bfd_release (abfd, tdata); - abfd->tdata.any = (void *)tdata_hold;; + abfd->tdata.any = (void *)tdata_hold; return NULL; } @@ -1376,7 +1377,7 @@ _bfd_vms_lib_get_module (bfd *abfd, unsigned int modidx) default: break; } - res->filename = name; + res->filename = xstrdup (name); tdata->cache[modidx] = res; @@ -2310,7 +2311,7 @@ _bfd_vms_lib_write_archive_contents (bfd *arch) /* Add a target for text library. This costs almost nothing and is useful to read VMS library on the host. */ -const bfd_target vms_lib_txt_vec = +const bfd_target alpha_vms_lib_txt_vec = { "vms-libtxt", /* Name. */ bfd_target_unknown_flavour,