public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [committed][gdb/contrib] Use OBJCOPY everywhere in cc-with-tweaks.sh
@ 2022-10-12  8:56 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2022-10-12  8:56 UTC (permalink / raw)
  To: gdb-patches

Hi,

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.

Committed to trunk.

Thanks,
- Tom

[gdb/contrib] Use OBJCOPY everywhere in cc-with-tweaks.sh

---
 gdb/contrib/cc-with-tweaks.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/contrib/cc-with-tweaks.sh b/gdb/contrib/cc-with-tweaks.sh
index 7919d2da85a..c6f0f62cd06 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-12  8:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-12  8:56 [committed][gdb/contrib] Use OBJCOPY everywhere in cc-with-tweaks.sh Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).