aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2011-03-31 11:08:41 +0000
committerTristan Gingold <gingold@adacore.com>2011-03-31 11:08:41 +0000
commit083faca904b9186ace2086deb7126a1b15f23f4a (patch)
treed59eb7acac5a30aa125f3764748634204cd46ac2 /bfd
parentac14530735340ebde54e9d536e3a0fd3e82f36db (diff)
downloadfsf-binutils-gdb-083faca904b9186ace2086deb7126a1b15f23f4a.zip
fsf-binutils-gdb-083faca904b9186ace2086deb7126a1b15f23f4a.tar.gz
fsf-binutils-gdb-083faca904b9186ace2086deb7126a1b15f23f4a.tar.bz2
bfd/
2011-03-31 Tristan Gingold <gingold@adacore.com> * vms-alpha.c (vms_get_remaining_object_record): Fix dec-c warning. (_bfd_vms_write_etir): Ditto. (_bfd_vms_slurp_etir): Avoid to use intptr_t * configure.com: Generate bfd_stdint.h binutils/ 2011-03-31 Tristan Gingold <gingold@adacore.com> * makefile.vms (DEBUG_OBJS): Add elfcomm.obj. libiberty/ 2011-03-31 Tristan Gingold <gingold@adacore.com> * makefile.vms (OBJS): Add filename_cmp.obj
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog7
-rw-r--r--bfd/configure.com7
-rw-r--r--bfd/vms-alpha.c6
3 files changed, 17 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 49a97359..ab6fe9a 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,10 @@
+2011-03-31 Tristan Gingold <gingold@adacore.com>
+
+ * vms-alpha.c (vms_get_remaining_object_record): Fix dec-c warning.
+ (_bfd_vms_write_etir): Ditto.
+ (_bfd_vms_slurp_etir): Avoid to use intptr_t
+ * configure.com: Generate bfd_stdint.h
+
2011-03-31 Bernd Schmidt <bernds@codesourcery.com>
* elf32-tic6x.h (struct elf32_tic6x_params): New.
diff --git a/bfd/configure.com b/bfd/configure.com
index 2102415..6e777a0 100644
--- a/bfd/configure.com
+++ b/bfd/configure.com
@@ -257,6 +257,13 @@ $DECK
$ EOD
$!
$!
+$! create bfd_stdint.h
+$!
+$ write sys$output "Generate `bfd_stdint.h'"
+$ create []bfd_stdint.h
+#include <inttypes.h>
+$!
+$!
$! create targmatch.h
$!
$ write sys$output "Generate `targmatch.h'"
diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c
index c0ba3c4..53d0f15 100644
--- a/bfd/vms-alpha.c
+++ b/bfd/vms-alpha.c
@@ -801,7 +801,7 @@ vms_get_remaining_object_record (bfd *abfd, int read_so_far)
/* Extract record size. */
PRIV (recrd.rec_size) = bfd_getl16 (PRIV (recrd.rec) + 2);
- if (PRIV (recrd.rec_size) <= 0)
+ if (PRIV (recrd.rec_size) == 0)
{
bfd_set_error (bfd_error_file_truncated);
return 0;
@@ -1709,7 +1709,7 @@ _bfd_vms_slurp_etir (bfd *abfd, struct bfd_link_info *info)
#if VMS_DEBUG
_bfd_vms_debug (4, "etir: %s(%d)\n",
_bfd_vms_etir_name (cmd), cmd);
- _bfd_hexdump (8, ptr, cmd_length - 4, (intptr_t) ptr);
+ _bfd_hexdump (8, ptr, cmd_length - 4, 0);
#endif
switch (cmd)
@@ -3752,7 +3752,7 @@ _bfd_vms_write_etir (bfd * abfd, int objtype ATTRIBUTE_UNUSED)
int pass2_in_progress = 0;
unsigned int irel;
- if (section->reloc_count <= 0)
+ if (section->reloc_count == 0)
(*_bfd_error_handler)
(_("SEC_RELOC with no relocs in section %s"), section->name);