This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [Patch] add support for alpha/vms archives
- From: Tristan Gingold <gingold at adacore dot com>
- To: Alan Modra <amodra at gmail dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Thu, 1 Apr 2010 09:31:36 +0200
- Subject: Re: [Patch] add support for alpha/vms archives
- References: <8F302B34-89B3-4582-A6A2-E66CA6D446F9@adacore.com> <20100331230556.GR6416@bubble.grove.modra.org>
On Apr 1, 2010, at 1:05 AM, Alan Modra wrote:
> On Wed, Mar 31, 2010 at 02:49:15PM +0200, Tristan Gingold wrote:
>> + /* Routines to use for BFD_JUMP_TABLE_ARCHIVE to get VMS style
>> + archives. Use BFD_JUMP_TABLE_ARCHIVE (_bfd_vms_lib). Some of them
>> + are irrelevant and never called, so defined as NULL. */
>> +
>> + extern bfd_boolean _bfd_vms_lib_write_archive_contents (bfd *arch);
>> + #define _bfd_vms_lib_slurp_armap NULL
>> + #define _bfd_vms_lib_slurp_extended_name_table NULL
>> + #define _bfd_vms_lib_construct_extended_name_table NULL
>> + #define _bfd_vms_lib_truncate_arname NULL
>> + #define _bfd_vms_lib_write_armap NULL
>> + #define _bfd_vms_lib_read_ar_hdr NULL
>> + #define _bfd_vms_lib_write_ar_hdr NULL
>> + extern bfd *_bfd_vms_lib_openr_next_archived_file (bfd *, bfd *);
>> + extern bfd *_bfd_vms_lib_get_elt_at_index (bfd *, symindex);
>> + extern int _bfd_vms_lib_generic_stat_arch_elt (bfd *, struct stat *);
>> + #define _bfd_vms_lib_update_armap_timestamp bfd_true
>> +
>> + /* Extra routines for VMS style archives. */
>> +
>> + extern symindex _bfd_vms_lib_find_symbol (bfd *, const char *);
>> + extern bfd *_bfd_vms_lib_get_imagelib_file (bfd *);
>> + extern const bfd_target *_bfd_vms_lib_alpha_archive_p (bfd *abfd);
>> + extern bfd_boolean _bfd_vms_lib_mkarchive (bfd *abfd);
>> +
>
> Do these all need to go in libbfd-in.h? Otherwise looks OK.
I think that's the best place for these declarations. They are defined in vms-lib.c but used by vms.c
As these archive format is also used on Itanium VMS (although using a slightly different format), they will
be used by elfxx-ia64.c.
Ok to commit ?
Tristan.