mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-28 04:25:10 +08:00
[gdb/contrib] Use OBJCOPY everywhere in cc-with-tweaks.sh
I noticed that the $want_gnu_debuglink code in gdb/contrib/cc-with-tweaks.sh uses objcopy instead of $OBJCOPY. Fix this. Script checked with shellcheck, no new warnings added. Tested on x86_64-linux.
This commit is contained in:
parent
9e65489ac2
commit
33fb3d6f14
@ -285,7 +285,7 @@ if [ "$want_gnu_debuglink" = true ]; then
|
||||
|
||||
# Overwrite output_file with stripped version containing
|
||||
# .gnu_debuglink to debug_file.
|
||||
objcopy --add-gnu-debuglink="$link" "${stripped_file}" \
|
||||
$OBJCOPY --add-gnu-debuglink="$link" "${stripped_file}" \
|
||||
"${output_file}"
|
||||
rc=$?
|
||||
[ $rc != 0 ] && exit $rc
|
||||
|
Loading…
Reference in New Issue
Block a user