From patchwork Wed Oct 5 15:28:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frederik Schwan X-Patchwork-Id: 2086 Return-Path: Delivered-To: patchwork@archlinux.org Received: from mail.archlinux.org [2a01:4f9:c010:3052::1] by patchwork.archlinux.org with IMAP (fetchmail-6.4.33) for (single-drop); Wed, 05 Oct 2022 15:28:58 +0000 (UTC) Received: from mail.archlinux.org by mail.archlinux.org with LMTP id WFllJbmiPWNtEAEAK+/4rw (envelope-from ) for ; Wed, 05 Oct 2022 15:28:57 +0000 Received: from lists.archlinux.org (lists.archlinux.org [95.217.236.249]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.archlinux.org (Postfix) with ESMTPS id 272AE15364D5; Wed, 5 Oct 2022 15:28:56 +0000 (UTC) Received: from lists.archlinux.org (localhost [IPv6:::1]) by lists.archlinux.org (Postfix) with ESMTP id 53F3E51B536; Wed, 5 Oct 2022 15:28:54 +0000 (UTC) Received: from mail.archlinux.org (mail.archlinux.org [95.216.189.61]) by lists.archlinux.org (Postfix) with ESMTPS id 5217851B52C for ; Wed, 5 Oct 2022 15:28:50 +0000 (UTC) Date: Wed, 5 Oct 2022 17:28:47 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=archlinux.org; s=dkim-rsa; t=1664983729; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=ATQZKTMwTF5DgT6sEkWZewX0nVRY3rWBkvLojOvAt2o=; b=qMxDw9dxsvAeCMpRXkWNgHZGkUo9fEu+cPRFaL5DEHx3QbWX3+lwqZDBqLFgXoMWsiEETK N/PacTmhJszYOVkOINsfQ8+UFc8vWEf/MlICMR/nyx2AQCGQ/AExfaY79xQ4QcZ5r7pefL rMhIjq6VjRaUjNcOJ7I9eNGIJ2VC2d8wLnp+FDiucvkGZCszxjxXAybtHm3wrQUGY94ySs KnydGj7kSnEVoyXuQ2/mgzzTLoL27kEY4N85l8rsbKcWBTwAW2xXUUwJjJkIY4pqcPSKFw VNZNtzG3MJOLa+20FfIiInrZx69M+8SgeEZvbOPMJRVEdyYMFFGEG9AImgquhi3TF496j6 mVMTPgqxGXqQ7btUmcaaCJ1p3lHaqHKEAVuvZkBCX72t1YF8ZrtJZNfKUsjl/pYZCt0ECk bQjBvlz6ecqjuJfQBXy7WooHc5caVrBUs9rn7p/ZbXWhgKYQyjx/Fzoj7LrOjP+1gkdIyf D4J3GcHPuh5B1lBPqwVBBzWbpgwhlInYDh0Mvfk6lCrNyooBadiqxwxmA2DQJtjc1fE/A5 l3oLgReJ5gFe3KnbcHPC/VW88jzlSDivM2FkW5DvpByBGuZS0H9Iwvz5p1ldFAiU3Vhe2m rHhI82SagMQJPfRXXBBRYlIvq9I8gTFj/LcVyeFfcb01Na7QPduVI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=archlinux.org; s=dkim-ed25519; t=1664983729; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=ATQZKTMwTF5DgT6sEkWZewX0nVRY3rWBkvLojOvAt2o=; b=qdut1CNvQJOGHAMn/focHntBwTtZP861v3OT8WwlYO6v58yFb95HAn94FIT2NQDjDUTiOs 4xlcKnthRwqtB1Dg== From: Frederik Schwan To: pacman-dev@lists.archlinux.org Subject: [PATCH] strip: Include `.o` files in strip operation Message-ID: <20221005152834.2bd36rlwt7gg2d6a@mail.tty42.de> Mail-Followup-To: pacman-dev@lists.archlinux.org MIME-Version: 1.0 Content-Disposition: inline Message-ID-Hash: CYM22E46S7ZOAURY7XRSKNHDFY4K7KQJ X-Message-ID-Hash: CYM22E46S7ZOAURY7XRSKNHDFY4K7KQJ X-MailFrom: freswa@archlinux.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.5 Precedence: list List-Id: Discussion list for pacman development Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Spamd-Result: default: False [-5.11 / 15.00]; SIGNED_PGP(-2.00)[]; DWL_DNSWL_LOW(-1.00)[archlinux.org:dkim]; DMARC_POLICY_ALLOW(-0.50)[archlinux.org,none]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:95.217.236.249:c]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; R_DKIM_ALLOW(-0.20)[archlinux.org:s=dkim-rsa,archlinux.org:s=dkim-ed25519]; MAILLIST(-0.20)[mailman]; RCVD_IN_DNSWL_MED(-0.20)[95.217.236.249:from]; RCVD_IN_DNSWL_LOW(-0.10)[95.216.189.61:received]; HAS_LIST_UNSUB(-0.01)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[pacman-dev@lists.archlinux.org]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:24940, ipnet:95.217.0.0/16, country:DE]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; FROM_NEQ_ENVFROM(0.00)[freswa@archlinux.org,pacman-dev-bounces@lists.archlinux.org]; DKIM_TRACE(0.00)[archlinux.org:+]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; NEURAL_HAM(-0.00)[-1.000]; FORGED_SENDER_MAILLIST(0.00)[] X-Rspamd-Server: mail.archlinux.org Authentication-Results: mail.archlinux.org; dkim=pass header.d=archlinux.org header.s=dkim-rsa header.b=qMxDw9dx; dkim=pass header.d=archlinux.org header.s=dkim-ed25519 header.b=qdut1CNv; spf=pass (mail.archlinux.org: domain of pacman-dev-bounces@lists.archlinux.org designates 95.217.236.249 as permitted sender) smtp.mailfrom=pacman-dev-bounces@lists.archlinux.org; dmarc=pass (policy=none) header.from=archlinux.org X-Rspamd-Queue-Id: 272AE15364D5 `.o` objects used to be omitted by strip.sh due to a missing match in the `Relocatable file` section. This patch fixes the issue by handling `.o` objects similar to kernel modules. fixes FS#74941 --- scripts/libmakepkg/tidy/strip.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.36.1 diff --git a/scripts/libmakepkg/tidy/strip.sh.in b/scripts/libmakepkg/tidy/strip.sh.in index 688bcf1b..71fe8e88 100644 --- a/scripts/libmakepkg/tidy/strip.sh.in +++ b/scripts/libmakepkg/tidy/strip.sh.in @@ -155,7 +155,7 @@ tidy_strip() { if ar t "$binary" &>/dev/null; then # Libraries (.a) strip_flags="$STRIP_STATIC" STRIPLTO=1 - elif [[ $binary = *'.ko' ]]; then # Kernel module + elif [[ $binary = *'.ko' || $binary = *'.o' ]]; then # Kernel module or object strip_flags="$STRIP_SHARED" else continue