This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RE: [PATCH] Addition of new option '--rlib' in linker for Renesas SH targets
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Gina Verlekar'" <GinaV at KPITCummins dot com>, "'Pedro Alves'" <pedro_alves at portugalmail dot pt>
- Cc: <binutils at sourceware dot org>
- Date: Tue, 4 Jul 2006 12:23:55 +0100
- Subject: RE: [PATCH] Addition of new option '--rlib' in linker for Renesas SH targets
On 04 July 2006 09:21, Gina Verlekar wrote:
> Hi,
>
>> You could instead have (simplified):
>
>> rlibextract $(renesaslib) $(outputdir)
>> ar q librenlib.a $(outputdir)/*
>> ld $(objects) -lrenlib
>
>> rlibextract being your new tool.
>> It would reduce code duplication,
>> you would be able to maintain it with a different release cycle from
>> binutils, *and* it could be used with older binutils versions.
>> Wouldn't this be better? Or am I missing something?
>
> Thank you for your suggestion.
> We agree to you that a separate utility to generate a GNU archive from
> Renesas library file is better idea. We will surely implement it. It
> would
> be better to invoke "ar" internally from this utility. This will help
> user
> to get GNU archive directly.
And of course, if there's a new release of binutils with a new improved
version of ar, your utility benefits automatically, without needing to
maintain the code you were going to add separately! :)
cheers,
DaveK
--
Can't think of a witty .sigline today....