From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id OLCELDyBRmObSwoAWB0awg (envelope-from ) for ; Wed, 12 Oct 2022 04:56:28 -0400 Received: by simark.ca (Postfix, from userid 112) id A98881E112; Wed, 12 Oct 2022 04:56:28 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=DUwfDlJQ; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 619031E0CB for ; Wed, 12 Oct 2022 04:56:28 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 82E2D386074D for ; Wed, 12 Oct 2022 08:56:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 82E2D386074D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1665564987; bh=cgOgEcxyQA592DMpNLOmBELeFYNWwcAcPjX4zvx5YwI=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=DUwfDlJQucFAyXancgYkJ1dkc+lmqWQAoPqpLMAlWSCgm/dg5+wo/uqMxYNaaL9SA N7QR4cvuprSmRWKm2LzZ7oKnR22Iobfk3+DaHSOd9XnwoC80Y/2g3T50jAbvUg6TBO 9vmU4DCLPN4DKmDQCEe5xBQ74BS9171NBDKt0iJ0= Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id CAEE03850859 for ; Wed, 12 Oct 2022 08:56:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CAEE03850859 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id D55BD21994 for ; Wed, 12 Oct 2022 08:56:06 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id BD8E713ACD for ; Wed, 12 Oct 2022 08:56:06 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id HgAZLSaBRmN5aAAAMHmgww (envelope-from ) for ; Wed, 12 Oct 2022 08:56:06 +0000 Date: Wed, 12 Oct 2022 10:56:05 +0200 To: gdb-patches@sourceware.org Subject: [committed][gdb/contrib] Use OBJCOPY everywhere in cc-with-tweaks.sh Message-ID: <20221012085602.GA22064@delia.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Tom de Vries via Gdb-patches Reply-To: Tom de Vries Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "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