This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Fw: Patch to add the ability to globally prefix sections and/or symbols using objcopy.
- From: Nick Clifton <nickc at redhat dot com>
- To: nickk at ubicom dot com
- Cc: binutils at sources dot redhat dot com
- Date: 13 Dec 2002 14:27:20 +0000
- Subject: Re: Fw: Patch to add the ability to globally prefix sections and/or symbols using objcopy.
- References: <08fe01c2a165$50153090$f601a8c0@nkelseyxp>
Hi Nick,
> I revised the objcopy patch as per your suggestions and emailed it
> to the binutils mailing list.
There were a couple of other problems with this patch:
* It did not include additions to the binutils/NEWS and binutils/doc/
binutils.texi files describing the new features added to
objcopy.
* The patch used a local variable called 'remove_leading_char' which
shadowed a global variable.
I haved fixed both of these problems and applied the patch.
Cheers
Nick
2002-12-04 Nick Kelsey <nickk@ubicom.com>
* objcopy.c (feature extension): Added --prefix-symbols <prefix>
option to rename all symbols by adding the given prefix to the begining
of the symbol name. This is useful to provide name space seperation
regardless of how the object file was created. Added --prefix-sections
<prefix> and --prefix-alloc-sections <prefix> options to rename all
sections (or all sections with the alloc flag set) by adding the given
prefix to the begining of the symbol name.