Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6630072rdb; Fri, 15 Dec 2023 04:20:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IFaiqYCgLRsm+EO25H59ZUX06PhFcaJjA9wPuvFwHMCVw1iBUtSH+cr6BJARqCNbkmk2MJF X-Received: by 2002:a17:903:22c7:b0:1d0:6ffe:1e7f with SMTP id y7-20020a17090322c700b001d06ffe1e7fmr6793202plg.98.1702642832112; Fri, 15 Dec 2023 04:20:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702642832; cv=none; d=google.com; s=arc-20160816; b=q94MzuxY3pDH4FpX/S1sSq579AsvCy7zK7Q9h7VOa4ZN4WyfEPR8uSUeECI2fGYXDU c2sVvnqiu9SrfyB2qo/GopHYhGnom3O67ICS5aBHmDCHSY7oftz66pLEMWeorHGXwLyh dwEISiCc24NLLfmWkWedRXfxjXgNm5gY11iA+zq7HCE8Vi2qZ654Yoari6t+u5/CgsCD to+YL6Wb6pbqRwxYPDUPbhMolS7aRD0YBAXlJWKMQEX8yMig9hAzlnTboWAq3wpOd7Sl /lZU3BO99TPnvF5aQ72pMwtOVorXKxlXAprv5qI5uN33c9L7nWS2Cl5A2q6KAMmfTONf A+bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :mail-followup-to:message-id:subject:cc:to:from:date:dkim-signature; bh=Oktg6aRC3W8PhGJdZXlIxIaehpCZtCWCDtZzO3gwMas=; fh=mF6ZxEm5GowaMqfE3jBsZXmGqOiNU35IzZAQGaSRmXM=; b=oH37rc2pQYxDF+uP5wUqogQfokL8XsQ8DqDRUG913VTZrYuWdd8a1IsuR3ykLId+Bh cbl/UWO22C+0fwce49NI587BuOU/4F2dnMMKdR8r+eFF5NX/D+6MLnFLrgLkoFogkVUk 7d6OdEia0gZRMHbD4Ov2a94sP3dTEvOm2MTxhNITqTSWfpGnDLYJ/AKrak7jodZcuy8l YGjxbw4QQU+cWXxsmK1LJTLnNXWDv9Q6cZfqaHgtnRG08kFxdxHlPFLEa3D6bb95LJBU xm4hjwkjOUkK8bjM7zruFGaZUM7/ZA5h2cnby1GuWdOt5YXAMCMqM5FByuiyOBvjRyH9 dYYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@avm.de header.s=mail header.b=Thwhup0t; spf=pass (google.com: domain of linux-kernel+bounces-912-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-912-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=avm.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z11-20020a170903018b00b001d331f3e1e8si6933834plg.261.2023.12.15.04.20.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 04:20:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-912-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@avm.de header.s=mail header.b=Thwhup0t; spf=pass (google.com: domain of linux-kernel+bounces-912-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-912-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=avm.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C1AC02858B9 for ; Fri, 15 Dec 2023 12:20:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EADC52C68A; Fri, 15 Dec 2023 12:20:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=avm.de header.i=@avm.de header.b="Thwhup0t" X-Original-To: linux-kernel@vger.kernel.org Received: from mail.avm.de (mail.avm.de [212.42.244.119]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D7FCE2D797; Fri, 15 Dec 2023 12:20:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=avm.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=avm.de Received: from mail-auth.avm.de (unknown [IPv6:2001:bf0:244:244::71]) by mail.avm.de (Postfix) with ESMTPS; Fri, 15 Dec 2023 13:13:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=avm.de; s=mail; t=1702642402; bh=LfEPw8Rf3GRHOSbe1ZYau1FlgGol6uSWCfKA23VZKA8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Thwhup0tbf5AHaKXNolCNyZ7FbvV6p0pPbY5A++Os5L+KUiggTTgNqVBAuHlmx6bM oOBqVtzQJIvj1NsZ6CRLm9QtWeAqFo7+P/uSRr/3Lt8MS/Ni5s5qHJfIlbknXcvXCq 2MaWIArwCp0mV95CmUUodBY/vYFQuU1fE4lhybhk= Received: from buildd.core.avm.de (buildd-sv-01.avm.de [172.16.0.225]) by mail-auth.avm.de (Postfix) with ESMTPA id C12E080698; Fri, 15 Dec 2023 13:13:22 +0100 (CET) Received: by buildd.core.avm.de (Postfix, from userid 1000) id B4253180C65; Fri, 15 Dec 2023 13:13:22 +0100 (CET) Date: Fri, 15 Dec 2023 13:13:20 +0100 From: Nicolas Schier To: Salvatore Bonaccorso Cc: Masahiro Yamada , Nathan Chancellor , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Nicolas Schier Subject: Re: make deb-pkg: Does not strip debug symbols when compressing modules Message-ID: Mail-Followup-To: Salvatore Bonaccorso , Masahiro Yamada , Nathan Chancellor , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="k9XsFw9lddrpm7zB" Content-Disposition: inline In-Reply-To: Organization: AVM GmbH X-purgate-ID: 149429::1702642402-FDD6B5FF-A2CCCE2C/0/0 X-purgate-type: clean X-purgate-size: 3550 X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean --k9XsFw9lddrpm7zB Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Date: Fri, 15 Dec 2023 13:13:20 +0100 From: Nicolas Schier To: Salvatore Bonaccorso Cc: Masahiro Yamada , Nathan Chancellor , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Nicolas Schier Subject: Re: make deb-pkg: Does not strip debug symbols when compressing modules On Thu, Dec 14, 2023 at 09:15:52PM +0100, Salvatore Bonaccorso wrote: > Hi, >=20 > On Thu, Dec 14, 2023 at 09:10:41PM +0100, Salvatore Bonaccorso wrote: > > Hi > >=20 > > When using (only tested with XZ compression, but the others should > > behave similarly) CONFIG_MODULE_COMPRESS_XZ=3Dy to compress the modules, > > it looks that the debug symbols are not striped. > >=20 > > Building with the attached test configuration results in packages: > >=20 > > -rw-r--r-- 1 build build 8.9M Dec 14 20:47 linux-headers-6.7.0-rc5+_6.= 7.0-rc5-00042-g88035e5694a8-1_amd64.deb > > -rw-r--r-- 1 build build 75M Dec 14 20:48 linux-image-6.7.0-rc5+-dbg_= 6.7.0-rc5-00042-g88035e5694a8-1_amd64.deb > > -rw-r--r-- 1 build build 1014M Dec 14 20:47 linux-image-6.7.0-rc5+_6.7.= 0-rc5-00042-g88035e5694a8-1_amd64.deb > > -rw-r--r-- 1 build build 1.3M Dec 14 20:47 linux-libc-dev_6.7.0-rc5-00= 042-g88035e5694a8-1_amd64.deb > >=20 > > This is odd, the linux-image-6.7.0-rc5+ package has a size of almost > > 1G and the modules are not stripped. > >=20 > > Switching the values instread to=20 > >=20 > > CONFIG_MODULE_COMPRESS_NONE=3Dy > > # CONFIG_MODULE_COMPRESS_XZ is not set > >=20 > > the packages are again produced correctly: > >=20 > > -rw-r--r-- 1 build build 8.9M Dec 14 20:59 linux-headers-6.7.0-rc5+_6.7= =2E0-rc5-00042-g88035e5694a8-2_amd64.deb > > -rw-r--r-- 1 build build 819M Dec 14 21:00 linux-image-6.7.0-rc5+-dbg_6= =2E7.0-rc5-00042-g88035e5694a8-2_amd64.deb > > -rw-r--r-- 1 build build 73M Dec 14 20:59 linux-image-6.7.0-rc5+_6.7.0= -rc5-00042-g88035e5694a8-2_amd64.deb > > -rw-r--r-- 1 build build 1.3M Dec 14 20:59 linux-libc-dev_6.7.0-rc5-000= 42-g88035e5694a8-2_amd64.deb >=20 > and the classical one. Missed to attach the promised attachement. The > used config is now here. :) Hi Salvatore, did you try to build with 'make INSTALL_MOD_STRIP=3D1 ...'? When I'm reproducing your issue here, the flag reduces the package size from ~1GB to ~95MB. Kind regards, Nicolas --k9XsFw9lddrpm7zB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEDv+Fiet06YHnC6RpiMa8nIiabbgFAmV8QuAACgkQiMa8nIia bbhqRxAAmO+Zt5rOnsMsmI3ONRfEyOtvKlilCTAXjrSv0My/IENgB+XWFsJG2lnn CBUi5ONIgl0mlIRtpFLwMiDHftFsc4wL/ga499rUJ2JULveY+iTPRNXQm+UPYudq XXppfJvqJym6Q3s2uGTRbJCry7VSzoHufTj+DmkTKRgSJ+Er9b/5fU6vuWJx2pKz EoC6C2SCs313HDdNQrG+zhFqgcMZNH1nS5FBcMKBsNgALFIeDjyXb4p695ThJj4p fAfaCBDXJs7bkeUFGKnyvcH0iY0xQ20xN+CZ4oABjh8zbDREN190yU8wEg7It61c iMmEkDHOmfA7TfO+pSQux7ZHadB5VnD5a94beJHO5hl1Y4hocgKyMUxF55uoojbq hTrR1WcqVdBHhLhhzsC35FFYg8mrpw4RNCpa5x6UrrzNFIqLU6RsvvMkDEV7z83A dWQYWTqrtJcE2WrG+7Jf4N14xD+vukwXbqXJw7BXOVNg3KdKOlQ5Igy6PqoIUlj2 P148zaadrUzFyee2UuVmZRxRwQZogGyXY6Z5ezSiQf8eoAGnMrFNb9emYTs6SFTo bh/6GsjOP6QOnH47OklH7lKWnUfpYdfCeBp6/dwwA9FZ9/SlyqIj7DSVo1L60GSr yH47DLYIMa/uZgt5aWQQscIiAW2FqJ0kFXV161pZlh81MnMIqYY= =P1d1 -----END PGP SIGNATURE----- --k9XsFw9lddrpm7zB--