This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [PATCH] Addition of new option '--rlib' in linker for Renesas SH targets


Hi,

The patch attached herewith adds a new utility 'convrenesaslib'. This
utility 
converts the input Renesas SH library file(s) to GNU archive file(s).
This utility supports only Renesas SH library files. Multiple Renesas
library 
files can be provided on command line at a time.

The usage of this utility is as follows: 
convrenesaslib filename(s)
where 'filename' is the input Renesas SH library file. 

The GNU archive which gets created has '.rlib' extension. This file is
created 
in the same directory as the Renesas library file.

An option '--remove-underscore' is provided to this utility. 
Usage:
convrenesaslib --remove-underscore filename(s) 

--remove-underscore
     This will remove all leading underscores appended to global symbols
in 
     the created GNU archive.

Changelog

2006-07-07  Gina G. Verlekar  <ginav@kpitcummins.com>
	* convrenesaslib.c: Add new file
	* Makefile.in: Modify to build convrenesaslib.c.
	* Makefile.am: Likewise.
	* configure.in: Check for Renesas SH targets to build
convrenesaslib.
	* doc/binutils.texi: Add documentation for convrenesaslib
utility.

Any comments will be appreciated.

Regards,
Gina Verlekar
KPIT Cummins InfoSystems Ltd.
Pune, India
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~	
Free download of GNU based tool-chains for Renesas SH, H8, R8C, M16C and
M32C 
Series.
The following site also offers free technical support to its users.	
Visit http://www.kpitgnutools.com for details.

Latest versions of KPIT GNU tools were released on June 1, 2006.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~	

	



-----Original Message-----
From: Dave Korn [mailto:dave.korn@artimi.com] 
Sent: Tuesday, July 04, 2006 4:54 PM
To: Gina Verlekar; 'Pedro Alves'
Cc: binutils@sourceware.org
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....

Attachment: convrenesaslib_utility.patch.tar.gz
Description: convrenesaslib_utility.patch.tar.gz


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]