summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2004-11-19 11:58:02 +0000
committerAlan Modra <amodra@bigpond.net.au>2004-11-19 11:58:02 +0000
commit273bdecda2d76f8acdf29b013d883239c576f806 (patch)
treeb32f664277e4167ce258dd121220568eba470373
parent654a38f1246458a39868ef39ffd1ced7e6fcb924 (diff)
downloadgdb-273bdecda2d76f8acdf29b013d883239c576f806.tar.gz
* elf32-arm.c (elf32_arm_finish_dynamic_sections): Warning fix.
* elf32-iq2000.c (iq2000_reloc_type_lookup): C90 function decl. * nlmcode.h (nlm_write_object_contents): Warning fix.
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/elf32-arm.c4
-rw-r--r--bfd/elf32-iq2000.c5
-rw-r--r--bfd/nlmcode.h2
4 files changed, 11 insertions, 6 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 376926e34e0..a65a887c0ef 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+2004-11-19 Alan Modra <amodra@bigpond.net.au>
+
+ * elf32-arm.c (elf32_arm_finish_dynamic_sections): Warning fix.
+ * elf32-iq2000.c (iq2000_reloc_type_lookup): C90 function decl.
+ * nlmcode.h (nlm_write_object_contents): Warning fix.
+
2004-11-18 Bob Wilson <bob.wilson@acm.org>
* elf32-xtensa.c (ebb_propose_action): Fix argument order.
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index 65c087396b4..b3edf6d5b83 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -5314,8 +5314,8 @@ elf32_arm_finish_dynamic_sections (bfd * output_bfd, struct bfd_link_info * info
if (dyn.d_tag == DT_RELSZ
|| dyn.d_tag == DT_RELASZ)
dyn.d_un.d_val += hdr->sh_size;
- else if (dyn.d_un.d_val == 0
- || hdr->sh_offset < dyn.d_un.d_val)
+ else if ((ufile_ptr) hdr->sh_offset
+ <= dyn.d_un.d_val - 1)
dyn.d_un.d_val = hdr->sh_offset;
}
}
diff --git a/bfd/elf32-iq2000.c b/bfd/elf32-iq2000.c
index 5dc781de33a..5bc51aa746a 100644
--- a/bfd/elf32-iq2000.c
+++ b/bfd/elf32-iq2000.c
@@ -330,9 +330,8 @@ iq2000_elf_relocate_hi16 (bfd *input_bfd,
}
static reloc_howto_type *
-iq2000_reloc_type_lookup (abfd, code)
- bfd * abfd ATTRIBUTE_UNUSED;
- bfd_reloc_code_real_type code;
+iq2000_reloc_type_lookup (bfd *abfd ATTRIBUTE_UNUSED,
+ bfd_reloc_code_real_type code)
{
/* Note that the iq2000_elf_howto_table is indxed by the R_
constants. Thus, the order that the howto records appear in the
diff --git a/bfd/nlmcode.h b/bfd/nlmcode.h
index bf41f27170a..c3d6bca6b15 100644
--- a/bfd/nlmcode.h
+++ b/bfd/nlmcode.h
@@ -1692,7 +1692,7 @@ nlm_write_object_contents (abfd)
/* A weak check on whether the section file positions were
reasonable. */
- if (bfd_tell (abfd) > (ufile_ptr) nlm_fixed_header (abfd)->codeImageOffset)
+ if (bfd_tell (abfd) > nlm_fixed_header (abfd)->codeImageOffset)
{
bfd_set_error (bfd_error_invalid_operation);
goto error_return;