diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-09-12 16:59:56 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-09-12 16:59:56 +0000 |
commit | 71add731336d5a00710088c981edb9d6de3e2de9 (patch) | |
tree | c89e42ee4501b8c689fbe4d8458c921cb5ff979d | |
parent | 45455cddda802f883f8ea8f341d68ccbb8c4735b (diff) | |
download | gdb-71add731336d5a00710088c981edb9d6de3e2de9.zip gdb-71add731336d5a00710088c981edb9d6de3e2de9.tar.gz gdb-71add731336d5a00710088c981edb9d6de3e2de9.tar.bz2 |
* pe.em: Don't include "../bfd/libbfd.h".
(gld_${EMULATION_NAME}_after_open): Use xmalloc rather than
bfd_alloc.
-rw-r--r-- | ld/emultempl/pe.em | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em index db2a5ee..d6a7573 100644 --- a/ld/emultempl/pe.em +++ b/ld/emultempl/pe.em @@ -42,8 +42,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "ldctor.h" #include "ldfile.h" #include "coff/internal.h" + +/* FIXME: This is a BFD internal header file, and we should not be + using it here. */ #include "../bfd/libcoff.h" -#include "../bfd/libbfd.h" + #include "deffile.h" #include "pe-dll.h" @@ -749,12 +752,11 @@ gld_${EMULATION_NAME}_after_open () else /* sentinel */ seq = 'c'; - new_name = bfd_alloc (is->the_bfd, - strlen (is->the_bfd->filename)+2); + new_name = xmalloc (strlen (is->the_bfd->filename) + 2); sprintf (new_name, "%s.%c", is->the_bfd->filename, seq); is->the_bfd->filename = new_name; - new_name = bfd_alloc(is->the_bfd, strlen(is->filename)+2); + new_name = xmalloc (strlen(is->filename) + 2); sprintf (new_name, "%s.%c", is->filename, seq); is->filename = new_name; } |