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: Weird issue with objcopy --add-gnu-debuglink


On Tue, Nov 02, 2010 at 02:43:10AM +0200, Nezmer wrote:
> Hi,
> 
> I'm having a weird issue with objcopy.
> 
> Running:
> FreeBSD 8-STABLE
> binutils git 1160cb53d1f7605d
> gcc 4.5.20101028
> 
> 
> I run for example:
> 
> ${OBJCOPY} --only-keep-debug strip strip.dbg
> ${OBJCOPY} --add-gnu-debuglink=strip.dbg /usr/home/user/dir/binutils/pkg/binutils/usr/local/bin/strip
> 
> 
> And get this error:
> /usr/local/lib/gcc45/gcc/x86_64-unknown-freebsd8.1/4.5.2/../../../../../x86_64-unknown-freebsd8.1/bin/objcopy:/usr/home/user/dir/binutils/pkg/binutils/usr/local/bin/stAa5Vkh:
> cannot create debug link section `strip.dbg': Invalid operation
> 
> This error is occurring quite often. Any idea why?

I'm starting to suspect this is a bug as It happens with different files
when I rerun.

I mean It's not reproducible on the same file. But the error will occur
at some point when you do this in a sequence of files. e,g on a binutils
package, sometimes strip fails, sometimes nm, sometimes ar ...etc


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