Weird issue with objcopy --add-gnu-debuglink
Nezmer
misc@nezmer.info
Tue Nov 2 00:43:00 GMT 2010
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?
More information about the Binutils
mailing list