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/elf32-mips.c | |
parent | 8f2bdc203241c910f5ddd969a5ebb5f7199f7edd (diff) | |
download | fsf-binutils-gdb-a9713b91a74c2cc05db65ec58573f388d2c41cc0.zip fsf-binutils-gdb-a9713b91a74c2cc05db65ec58573f388d2c41cc0.tar.gz fsf-binutils-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/elf32-mips.c')
-rw-r--r-- | bfd/elf32-mips.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c index a4e10d3..118ebb0 100644 --- a/bfd/elf32-mips.c +++ b/bfd/elf32-mips.c @@ -1550,7 +1550,6 @@ mips_elf_find_nearest_line (abfd, section, symbols, offset, filename_ptr, bfd_alloc (abfd, sizeof (struct mips_elf_find_line))); if (fi == NULL) { - bfd_set_error (bfd_error_no_memory); msec->flags = origflags; return false; } @@ -1570,7 +1569,6 @@ mips_elf_find_nearest_line (abfd, section, symbols, offset, filename_ptr, sizeof (struct fdr)))); if (fi->d.fdr == NULL) { - bfd_set_error (bfd_error_no_memory); msec->flags = origflags; return false; } @@ -1669,10 +1667,7 @@ mips_elf_link_hash_newfunc (entry, table, string) bfd_hash_allocate (table, sizeof (struct mips_elf_link_hash_entry))); if (ret == (struct mips_elf_link_hash_entry *) NULL) - { - bfd_set_error (bfd_error_no_memory); - return (struct bfd_hash_entry *) ret; - } + return (struct bfd_hash_entry *) ret; /* Call the allocation method of the superclass. */ ret = ((struct mips_elf_link_hash_entry *) @@ -1701,10 +1696,7 @@ mips_elf_link_hash_table_create (abfd) ret = ((struct mips_elf_link_hash_table *) bfd_alloc (abfd, sizeof (struct mips_elf_link_hash_table))); if (ret == (struct mips_elf_link_hash_table *) NULL) - { - bfd_set_error (bfd_error_no_memory); - return NULL; - } + return NULL; if (! _bfd_elf_link_hash_table_init (&ret->root, abfd, mips_elf_link_hash_newfunc)) @@ -2226,6 +2218,9 @@ mips_elf_final_link (abfd, info) gptab_bss_sec = o; else { + (*_bfd_error_handler) + ("%s: illegal section name `%s'", + bfd_get_filename (abfd), o->name); bfd_set_error (bfd_error_nonrepresentable_section); return false; } @@ -2372,7 +2367,6 @@ mips_elf_final_link (abfd, info) bfd_alloc (abfd, c * sizeof (Elf32_External_gptab))); if (ext_tab == NULL) { - bfd_set_error (bfd_error_no_memory); free (tab); return false; } |