This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: objcopy - Invalid operation
- From: Nick Clifton <nickc at redhat dot com>
- To: James <james00_c at yahoo dot com>
- Cc: binutils at sources dot redhat dot com, help-gnu-utils at gnu dot org
- Date: Fri, 24 Oct 2003 16:02:44 +0100
- Subject: Re: objcopy - Invalid operation
- References: <20031023195746.17434.qmail@web14504.mail.yahoo.com>
Hi James,
> I posted the enclosed message yesterday and haven't received a
> response from anyone as yet.
Please be patient. The people who answer questions on this list are
all volunteers who have other, important, work to do as well.
> If this is not the appropriate group then can anyone recommend one?
This is the correct list.
> I am currently using objcopy version 2.13.90
In general it is always a good idea to make sure that you are using
the latest release before reporting problems. In the case of binutils
this is 2.14 (or if you prefer using HJ's versions: 2.14.90.0.6).
>> I am trying to rename a symbol in an object file called
>> "error_msg.o" and following is its information:
>>
>> % objdump -t error_msg.o
>>
>> error_msg.o: file format mach-o-be
>> 00000000000000fc g *UND* _error_message
>> The error messages that I receive are as follows:
>>
>> % objcopy --redefine-sym
>> _error_message=_au_error_message error_msg.o
>> objcopy: error_msg.o: Invalid operation
>> Any suggestions on how to resolve this problem?
It may well be a bug in the bfd library. if you can provide a test
case (ie the error_msg.o file) we can try to investigate.
For what it is worth this kind of renaming should be possible. It
certainly does work for a simple test case using the i686-pc-linux-gnu
target and the current binutils sources from the CVS repository.
Cheers
Nick