+2021-03-29 Alan Modra <amodra@gmail.com>
+
+ * coff-z80.c (z80_is_local_label_name): Return bfd_boolean.
+ * elf32-z80.c (z80_is_local_label_name): Likewise.
+ * elf32-spu.c (spu_elf_modify_headers): Likewise.
+ * elf32-nds32.h (struct elf_nds32_link_hash_table <hyper_relax>):
+ Change type to int.
+ * vms-lib.c (_bfd_vms_lib_write_archive_contents): Correct test
+ for error return from vms_write_data_block.
+
2021-03-29 Alan Modra <amodra@gmail.com>
* elf32-i386.c (elf_i386_finish_local_dynamic_symbol): Return int.
int relax_fp_as_gp; /* --mrelax-omit-fp. */
int eliminate_gc_relocs; /* --meliminate-gc-relocs. */
FILE *sym_ld_script; /* --mgen-symbol-ld-script=<file>. */
- bfd_boolean hyper_relax; /* Relax for symbol not in RW sections. */
+ int hyper_relax; /* Relax for symbol not in RW sections. */
int tls_desc_trampoline; /* --m[no-]tlsdesc-trampoline. */
/* Disable if linking a dynamically linked executable. */
int load_store_relax;
else
{
/* Write the MHD. */
- if (vms_write_data_block (arch, &data, &off, blk, sz, 0) < 0)
+ if (!vms_write_data_block (arch, &data, &off, blk, sz, 0))
goto input_err;
/* Write the member. */
sz = bfd_bread (blk, sizeof (blk), current);
if (sz == 0)
break;
- if (vms_write_data_block (arch, &data, &off, blk, sz, 0) < 0)
+ if (!vms_write_data_block (arch, &data, &off, blk, sz, 0))
goto input_err;
}
/* Write the end of module marker. */
- if (vms_write_data_block (arch, &data, &off,
- eotdesc, sizeof (eotdesc), 1) < 0)
+ if (!vms_write_data_block (arch, &data, &off,
+ eotdesc, sizeof (eotdesc), 1))
goto input_err;
}
}