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/coff-i960.c | |
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/coff-i960.c')
-rw-r--r-- | bfd/coff-i960.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/bfd/coff-i960.c b/bfd/coff-i960.c index ece0697..a67256c 100644 --- a/bfd/coff-i960.c +++ b/bfd/coff-i960.c @@ -212,10 +212,7 @@ coff_i960_relocate (abfd, reloc_entry, symbol, data, input_section, ((PTR) bfd_zalloc (abfd, sizeof (struct coff_section_tdata))); if (osec->used_by_bfd == NULL) - { - bfd_set_error (bfd_error_no_memory); - return bfd_reloc_overflow; - } + return bfd_reloc_overflow; } coff_section_data (output_bfd, osec)->tdata = (PTR) syms; } @@ -549,6 +546,8 @@ coff_i960_adjust_symndx (obfd, info, ibfd, sec, irel, adjustedp) { struct coff_link_hash_entry *h; + *adjustedp = false; + h = obj_coff_sym_hashes (ibfd)[irel->r_symndx]; if (h == NULL || (h->root.type != bfd_link_hash_defined @@ -587,7 +586,6 @@ const bfd_target icoff_little_vec = '/', /* ar_pad_char */ 15, /* ar_max_namelen */ - 3, /* minimum alignment power */ bfd_getl64, bfd_getl_signed_64, bfd_putl64, bfd_getl32, bfd_getl_signed_32, bfd_putl32, bfd_getl16, bfd_getl_signed_16, bfd_putl16, /* data */ @@ -632,7 +630,6 @@ const bfd_target icoff_big_vec = '/', /* ar_pad_char */ 15, /* ar_max_namelen */ - 3, /* minimum alignment power */ bfd_getl64, bfd_getl_signed_64, bfd_putl64, bfd_getl32, bfd_getl_signed_32, bfd_putl32, bfd_getl16, bfd_getl_signed_16, bfd_putl16, /* data */ |