diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-11-29 22:05:37 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-11-29 22:05:37 +0000 |
commit | a9713b91a74c2cc05db65ec58573f388d2c41cc0 (patch) | |
tree | c786fa623034d37112d9290b9380d06ff0c36a5c /bfd/peicode.h | |
parent | 8f2bdc203241c910f5ddd969a5ebb5f7199f7edd (diff) | |
download | gdb-a9713b91a74c2cc05db65ec58573f388d2c41cc0.zip gdb-a9713b91a74c2cc05db65ec58573f388d2c41cc0.tar.gz gdb-a9713b91a74c2cc05db65ec58573f388d2c41cc0.tar.bz2 |
* opncls.c (bfd_alloc_by_size_t): Set bfd_error_no_memory if
obstack_alloc fails.
(bfd_alloc_finish): Set bfd_error_no_memory if obstack_finish
fails.
* libbfd.c (bfd_zmalloc): Set bfd_error_no_memory if malloc fails.
* Many files: don't set bfd_error_no_memory if one of the above
routines fails.
Diffstat (limited to 'bfd/peicode.h')
-rw-r--r-- | bfd/peicode.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/bfd/peicode.h b/bfd/peicode.h index f3bc8fc..98db722 100644 --- a/bfd/peicode.h +++ b/bfd/peicode.h @@ -1112,8 +1112,8 @@ static char * dir_names[IMAGE_NUMBEROF_DIRECTORY_ENTRIES] = "Special Directory", "Thread Storage Directory [.tls]", "Load Configuration Directory", - "Reserved", - "Reserved [first thunk address on PPC]", + "Bound Import Directory", + "Import Address Table Directory", "Reserved", "Reserved", "Reserved" @@ -1436,9 +1436,9 @@ pe_print_pdata(abfd, vfile) static boolean pe_print_private_bfd_data (abfd, vfile) bfd *abfd; - void *vfile; + PTR vfile; { - FILE *file = vfile; + FILE *file = (FILE *) vfile; int j; pe_data_type *pe = pe_data (abfd); struct internal_extra_pe_aouthdr *i = &pe->pe_opthdr; @@ -1496,10 +1496,7 @@ pe_mkobject (abfd) (struct pe_tdata *) bfd_zalloc (abfd, sizeof (pe_data_type)); if (abfd->tdata.pe_obj_data == 0) - { - bfd_set_error (bfd_error_no_memory); - return false; - } + return false; pe = pe_data (abfd); |