This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Weird issue with objcopy --add-gnu-debuglink
- From: Nezmer <misc at nezmer dot info>
- To: binutils at sourceware dot org
- Date: Tue, 2 Nov 2010 15:10:56 +0200
- Subject: Re: Weird issue with objcopy --add-gnu-debuglink
- References: <20101102004310.GA67732@mail>
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