archives with foreign object files

Alan Modra amodra@bigpond.net.au
Thu Aug 16 05:07:00 GMT 2001


On Thu, Aug 16, 2001 at 05:56:53AM -0400, Hans-Peter Nilsson wrote:
> On Thu, 16 Aug 2001, Alan Modra wrote:
> > The idea of this patch is to fix a problem with `ar' when trying to
> > operate on an archive containing object files of a different format
> > to the archive itself.
> 
> So, does your mix of object formats in an archive work with the
> linker, or is this just for standalone "ar" usage?  If it
> doesn't work with the linker (or really: isn't expected to
> work), should it be warned about when "ar" works on it?

I think whether ld works or not is an entirely separate issue.
ar ought to work standalone.  As things are, you can create an
archive from which you can't extract anything.

Alan



More information about the Binutils mailing list