aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-arm.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-11-19 11:58:02 +0000
committerAlan Modra <amodra@gmail.com>2004-11-19 11:58:02 +0000
commitde52dba4abb83cdac3aae1ecdaa2c5c176b168f6 (patch)
treeb2b562c582ffe666fb20fc374513dfe3531ab7e1 /bfd/elf32-arm.c
parent9cd6d51a560c784509b87b6d5bca7470b43dd9bc (diff)
downloadgdb-de52dba4abb83cdac3aae1ecdaa2c5c176b168f6.zip
gdb-de52dba4abb83cdac3aae1ecdaa2c5c176b168f6.tar.gz
gdb-de52dba4abb83cdac3aae1ecdaa2c5c176b168f6.tar.bz2
* 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.
Diffstat (limited to 'bfd/elf32-arm.c')
-rw-r--r--bfd/elf32-arm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index 65c0873..b3edf6d 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;
}
}