aboutsummaryrefslogtreecommitdiff
path: root/gdb/contrib
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2022-10-12 10:55:39 +0200
committerTom de Vries <tdevries@suse.de>2022-10-12 10:55:39 +0200
commit33fb3d6f140b03062b6bce2065a44b3c8a42ba62 (patch)
tree96c131366a7c4cd41a6a7a8f3db28ea802bcf84d /gdb/contrib
parent9e65489ac29a2b38417c4f17acf82187343751a6 (diff)
downloadfsf-binutils-gdb-33fb3d6f140b03062b6bce2065a44b3c8a42ba62.zip
fsf-binutils-gdb-33fb3d6f140b03062b6bce2065a44b3c8a42ba62.tar.gz
fsf-binutils-gdb-33fb3d6f140b03062b6bce2065a44b3c8a42ba62.tar.bz2
[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.
Diffstat (limited to 'gdb/contrib')
-rwxr-xr-xgdb/contrib/cc-with-tweaks.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/contrib/cc-with-tweaks.sh b/gdb/contrib/cc-with-tweaks.sh
index 7919d2d..c6f0f62 100755
--- a/gdb/contrib/cc-with-tweaks.sh
+++ b/gdb/contrib/cc-with-tweaks.sh
@@ -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