This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[committed/vms] Fix VMS configure and makefiles (for alpha)
- From: Tristan Gingold <gingold at adacore dot com>
- To: binutils <binutils at sourceware dot org>
- Date: Thu, 31 Mar 2011 13:04:43 +0200
- Subject: [committed/vms] Fix VMS configure and makefiles (for alpha)
Hi,
I am committing this patch so that the binutils can be built on alpha vms with make.
Tristan.
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
Index: bfd/configure.com
===================================================================
RCS file: /cvs/src/src/bfd/configure.com,v
retrieving revision 1.4
diff -c -p -r1.4 configure.com
*** bfd/configure.com 30 Sep 2009 13:12:50 -0000 1.4
--- bfd/configure.com 31 Mar 2011 11:01:50 -0000
*************** $DECK
*** 257,262 ****
--- 257,269 ----
$ 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'"
Index: bfd/vms-alpha.c
===================================================================
RCS file: /cvs/src/src/bfd/vms-alpha.c,v
retrieving revision 1.42
diff -c -p -r1.42 vms-alpha.c
*** bfd/vms-alpha.c 25 Mar 2011 15:39:03 -0000 1.42
--- bfd/vms-alpha.c 31 Mar 2011 11:01:51 -0000
*************** vms_get_remaining_object_record (bfd *ab
*** 801,807 ****
/* Extract record size. */
PRIV (recrd.rec_size) = bfd_getl16 (PRIV (recrd.rec) + 2);
! if (PRIV (recrd.rec_size) <= 0)
{
bfd_set_error (bfd_error_file_truncated);
return 0;
--- 801,807 ----
/* Extract record size. */
PRIV (recrd.rec_size) = bfd_getl16 (PRIV (recrd.rec) + 2);
! if (PRIV (recrd.rec_size) == 0)
{
bfd_set_error (bfd_error_file_truncated);
return 0;
*************** _bfd_vms_slurp_etir (bfd *abfd, struct b
*** 1709,1715 ****
#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);
#endif
switch (cmd)
--- 1709,1715 ----
#if VMS_DEBUG
_bfd_vms_debug (4, "etir: %s(%d)\n",
_bfd_vms_etir_name (cmd), cmd);
! _bfd_hexdump (8, ptr, cmd_length - 4, 0);
#endif
switch (cmd)
*************** _bfd_vms_write_etir (bfd * abfd, int obj
*** 3752,3758 ****
int pass2_in_progress = 0;
unsigned int irel;
! if (section->reloc_count <= 0)
(*_bfd_error_handler)
(_("SEC_RELOC with no relocs in section %s"), section->name);
--- 3752,3758 ----
int pass2_in_progress = 0;
unsigned int irel;
! if (section->reloc_count == 0)
(*_bfd_error_handler)
(_("SEC_RELOC with no relocs in section %s"), section->name);
Index: binutils/makefile.vms
===================================================================
RCS file: /cvs/src/src/binutils/makefile.vms,v
retrieving revision 1.2
diff -c -p -r1.2 makefile.vms
*** binutils/makefile.vms 12 Jan 2010 10:16:50 -0000 1.2
--- binutils/makefile.vms 31 Mar 2011 11:01:52 -0000
*************** LIBIBERTY = [-.libiberty]libiberty.olb/l
*** 27,33 ****
OPCODES_DEP = [-.opcodes]libopcodes.olb
OPCODES = [-.opcodes]libopcodes.olb/lib
! DEBUG_OBJS = rddbg.obj,debug.obj,stabs.obj,ieee.obj,rdcoff.obj,dwarf.obj
BULIBS = bucomm.obj,version.obj,filemode.obj
--- 27,34 ----
OPCODES_DEP = [-.opcodes]libopcodes.olb
OPCODES = [-.opcodes]libopcodes.olb/lib
! DEBUG_OBJS = rddbg.obj,debug.obj,stabs.obj,ieee.obj,rdcoff.obj,dwarf.obj,\
! elfcomm.obj
BULIBS = bucomm.obj,version.obj,filemode.obj
Index: libiberty/makefile.vms
===================================================================
RCS file: /cvs/src/src/libiberty/makefile.vms,v
retrieving revision 1.9
diff -c -p -r1.9 makefile.vms
*** libiberty/makefile.vms 2 Sep 2009 15:23:35 -0000 1.9
--- libiberty/makefile.vms 31 Mar 2011 11:01:53 -0000
***************
*** 9,15 ****
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,\
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,\
--- 9,15 ----
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,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,\