From 083faca904b9186ace2086deb7126a1b15f23f4a Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Thu, 31 Mar 2011 11:08:41 +0000 Subject: [PATCH] bfd/ 2011-03-31 Tristan Gingold * 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 * makefile.vms (DEBUG_OBJS): Add elfcomm.obj. libiberty/ 2011-03-31 Tristan Gingold * makefile.vms (OBJS): Add filename_cmp.obj --- bfd/ChangeLog | 7 +++++++ bfd/configure.com | 7 +++++++ bfd/vms-alpha.c | 6 +++--- binutils/ChangeLog | 4 ++++ binutils/makefile.vms | 3 ++- libiberty/ChangeLog | 4 ++++ libiberty/makefile.vms | 2 +- 7 files changed, 28 insertions(+), 5 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 49a97359100..ab6fe9ad21a 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2011-03-31 Tristan Gingold + + * 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 * elf32-tic6x.h (struct elf32_tic6x_params): New. diff --git a/bfd/configure.com b/bfd/configure.com index 21024156eba..6e777a0b131 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 +$! +$! $! create targmatch.h $! $ write sys$output "Generate `targmatch.h'" diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c index c0ba3c46d81..53d0f153f92 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); diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 0a22340c1c4..7646a9f10a6 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2011-03-31 Tristan Gingold + + * makefile.vms (DEBUG_OBJS): Add elfcomm.obj. + 2011-03-31 Bernd Schmidt * readelf.c (get_symbol_index_type): Handle SCOM for TIC6X. diff --git a/binutils/makefile.vms b/binutils/makefile.vms index 888e4fd3620..df779b7e43f 100644 --- a/binutils/makefile.vms +++ b/binutils/makefile.vms @@ -27,7 +27,8 @@ LIBIBERTY = [-.libiberty]libiberty.olb/lib OPCODES_DEP = [-.opcodes]libopcodes.olb OPCODES = [-.opcodes]libopcodes.olb/lib -DEBUG_OBJS = rddbg.obj,debug.obj,stabs.obj,ieee.obj,rdcoff.obj,dwarf.obj +DEBUG_OBJS = rddbg.obj,debug.obj,stabs.obj,ieee.obj,rdcoff.obj,dwarf.obj,\ + elfcomm.obj BULIBS = bucomm.obj,version.obj,filemode.obj diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index dc926382a8e..f6138b69e24 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,7 @@ +2011-03-31 Tristan Gingold + + * makefile.vms (OBJS): Add filename_cmp.obj + 2011-02-28 Kai Tietz * filename_cmp.c (filename_ncmp): New function. diff --git a/libiberty/makefile.vms b/libiberty/makefile.vms index d69d7d9efa2..606adac0964 100644 --- a/libiberty/makefile.vms +++ b/libiberty/makefile.vms @@ -9,7 +9,7 @@ OBJS=getopt.obj,obstack.obj,xexit.obj,xmalloc.obj,hex.obj,\ getopt1.obj,cplus-dem.obj,cp-demangle.obj,cp-demint.obj,\ - asprintf.obj vasprintf.obj,mkstemps.obj,\ + asprintf.obj vasprintf.obj,mkstemps.obj,filename_cmp.obj,\ concat.obj,getruntime.obj,getpagesize.obj,getpwd.obj,xstrerror.obj,\ xmemdup.obj,xstrdup.obj,xatexit.obj,choose-temp.obj,fnmatch.obj,\ objalloc.obj,safe-ctype.obj,hashtab.obj,lbasename.obj,argv.obj,\ -- 2.30.2