From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2205) id 4D47C38515F8; Wed, 12 Oct 2022 08:55:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4D47C38515F8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1665564945; bh=w7PMQiesrT+HZAVu0pB8G/OU8Nl8bymrhdwmtcBc8Z4=; h=From:To:Subject:Date:From; b=lv1u7ivmFgKj9B3vI/4StL5mrERsxQTDQgMPyjJi0Ghksvh683XoB0w98LEleZmMt HGzMXAFoxH/IzyTcmiuhuWwhtEENcZSarZ9SHanhfTrJ7d+gH38k61LVTz8H4I/JII YAiDag9362dRTq257zGMXwSKIrNxfVN3HoYxdkWU= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom de Vries To: gdb-cvs@sourceware.org Subject: [binutils-gdb] [gdb/contrib] Use OBJCOPY everywhere in cc-with-tweaks.sh X-Act-Checkin: binutils-gdb X-Git-Author: Tom de Vries X-Git-Refname: refs/heads/master X-Git-Oldrev: 9e65489ac29a2b38417c4f17acf82187343751a6 X-Git-Newrev: 33fb3d6f140b03062b6bce2065a44b3c8a42ba62 Message-Id: <20221012085545.4D47C38515F8@sourceware.org> Date: Wed, 12 Oct 2022 08:55:45 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D33fb3d6f140b= 03062b6bce2065a44b3c8a42ba62 commit 33fb3d6f140b03062b6bce2065a44b3c8a42ba62 Author: Tom de Vries Date: Wed Oct 12 10:55:39 2022 +0200 [gdb/contrib] Use OBJCOPY everywhere in cc-with-tweaks.sh =20 I noticed that the $want_gnu_debuglink code in gdb/contrib/cc-with-twea= ks.sh uses objcopy instead of $OBJCOPY. Fix this. =20 Script checked with shellcheck, no new warnings added. =20 Tested on x86_64-linux. Diff: --- 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" =3D true ]; then =20 # Overwrite output_file with stripped version containing # .gnu_debuglink to debug_file. - objcopy --add-gnu-debuglink=3D"$link" "${stripped_file}" \ + $OBJCOPY --add-gnu-debuglink=3D"$link" "${stripped_file}" \ "${output_file}" rc=3D$? [ $rc !=3D 0 ] && exit $rc