[Patch]: Enable writing VMS archives on ia64/vms

Tristan Gingold gingold@adacore.com
Mon Jun 7 15:42:00 GMT 2010


Hi,

this patch simply enables writing VMS archives on ia64/vms.

Ok to commit ? (I prefer to get an approval as it modifies libbfd-in.h)

Tristan.

bfd/
2010-06-07  Tristan Gingold  <gingold@adacore.com>

	* vms-lib.c (_bfd_vms_lib_ia64_mkarchive): New function.
	* libbfd-in.h (_bfd_vms_lib_ia64_mkarchive): Declare.
	* libbfd.h: Regenerate.
	* elfxx-ia64.c (bfd_elfNN_write_archive_contents): Redefine for VMS.
	(bfd_elfNN_mkarchive): Ditto.

Index: elfxx-ia64.c
===================================================================
RCS file: /cvs/src/src/bfd/elfxx-ia64.c,v
retrieving revision 1.222
diff -c -r1.222 elfxx-ia64.c
*** elfxx-ia64.c        14 May 2010 07:18:39 -0000      1.222
--- elfxx-ia64.c        7 Jun 2010 15:37:48 -0000
***************
*** 6179,6184 ****
--- 6179,6188 ----
  
  #undef bfd_elfNN_archive_p
  #define bfd_elfNN_archive_p _bfd_vms_lib_ia64_archive_p
+ #undef bfd_elfNN_write_archive_contents
+ #define bfd_elfNN_write_archive_contents _bfd_vms_lib_write_archive_contents
+ #undef bfd_elfNN_mkarchive
+ #define bfd_elfNN_mkarchive _bfd_vms_lib_ia64_mkarchive
  
  #define bfd_elfNN_archive_slurp_armap \
    _bfd_vms_lib_slurp_armap
Index: libbfd-in.h
===================================================================
RCS file: /cvs/src/src/bfd/libbfd-in.h,v
retrieving revision 1.82
diff -c -r1.82 libbfd-in.h
*** libbfd-in.h 31 May 2010 15:03:14 -0000      1.82
--- libbfd-in.h 7 Jun 2010 15:37:48 -0000
***************
*** 377,382 ****
--- 377,383 ----
  extern const bfd_target *_bfd_vms_lib_alpha_archive_p (bfd *abfd);
  extern const bfd_target *_bfd_vms_lib_ia64_archive_p (bfd *abfd);
  extern bfd_boolean _bfd_vms_lib_alpha_mkarchive (bfd *abfd);
+ extern bfd_boolean _bfd_vms_lib_ia64_mkarchive (bfd *abfd);
  
  /* Routines to use for BFD_JUMP_TABLE_SYMBOLS where there is no symbol
     support.  Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).  */
Index: vms-lib.c
===================================================================
RCS file: /cvs/src/src/bfd/vms-lib.c,v
retrieving revision 1.9
diff -c -r1.9 vms-lib.c
*** vms-lib.c   31 May 2010 15:03:14 -0000      1.9
--- vms-lib.c   7 Jun 2010 15:37:49 -0000
***************
*** 703,708 ****
--- 703,714 ----
    return _bfd_vms_lib_mkarchive (abfd, vms_lib_alpha);
  }
  
+ bfd_boolean
+ _bfd_vms_lib_ia64_mkarchive (bfd *abfd)
+ {
+   return _bfd_vms_lib_mkarchive (abfd, vms_lib_ia64);
+ }
+ 
  /* Find NAME in the symbol index.  Return the index.  */
  
  symindex



More information about the Binutils mailing list