Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B6693CCA476 for ; Tue, 7 Oct 2025 14:46:38 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.1138945.1474522 (Exim 4.92) (envelope-from ) id 1v68xD-0008KB-1A; Tue, 07 Oct 2025 14:46:15 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1138945.1474522; Tue, 07 Oct 2025 14:46:15 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1v68xC-0008K4-UX; Tue, 07 Oct 2025 14:46:14 +0000 Received: by outflank-mailman (input) for mailman id 1138945; Tue, 07 Oct 2025 14:46:13 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1v68xB-0008Jw-3U for xen-devel@lists.xenproject.org; Tue, 07 Oct 2025 14:46:13 +0000 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [2a00:1450:4864:20::534]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 5e0dcbe3-a38c-11f0-9d15-b5c5bf9af7f9; Tue, 07 Oct 2025 16:46:11 +0200 (CEST) Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-631787faf35so11578494a12.3 for ; Tue, 07 Oct 2025 07:46:11 -0700 (PDT) Received: from [10.156.60.236] (ip-037-024-206-209.um08.pools.vodafone-ip.de. [37.24.206.209]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-637881010ffsm12599149a12.27.2025.10.07.07.46.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Oct 2025 07:46:09 -0700 (PDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 5e0dcbe3-a38c-11f0-9d15-b5c5bf9af7f9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1759848371; x=1760453171; darn=lists.xenproject.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=SxWgx81tFcacAgqzc0X1Yi0yB6gXZFmdLSSn854w3Oo=; b=E1rTZ5+CU7A9PJVSC3oFOIsRM+/8msA8jBuRqrhplvfTT9F0Ii5m4qwheWPvuML836 qHP3smV3PywU0nmncCoYfj3nBoRjmt/K/gbIUB/kmOxpBx2FuWxSthfczLggXEBDpykH 0ny56R4Vn7tp6RVHZIvNZOweOjCIt7X1tdMKHHbRqbdNDhfMX6TNf9hmfk5oHQ5Xs6sU OmGYoFGrabrU2yCz1smJqNXvIE8TyW35yb6gwqjal+gMJ2GPhVrvhOidz+7FU+cs9Tpe 6gsLA2AQVnkWKlouU50EOByX3jd/gzgHlrGnOyIPx7AoFCW6qZ6k/tjdwVtUvrJOG6wR jm4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759848371; x=1760453171; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=SxWgx81tFcacAgqzc0X1Yi0yB6gXZFmdLSSn854w3Oo=; b=vv9cXu/UYQDE4X3kLnoEpIXiZrOo4r/ZMyethITeB8bufpEA1pmxj4bFOARLfXHOYl SHlWY1312yboQ/Ul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qaLys1i/e/PtXYBkjgvWL7Izg== X-Received: by 2002:a05:6402:786:b0:634:c4b4:e627 with SMTP id 4fb4d7f45d1cf-63939c26104mr13422677a12.29.1759848369666; Tue, 07 Oct 2025 07:46:09 -0700 (PDT) Message-ID: Date: Tue, 7 Oct 2025 16:46:17 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] xen: Strip xen.efi by default To: =?UTF-8?Q?Marek_Marczykowski-G=C3=B3recki?= Cc: Frediano Ziglio , xen-devel@lists.xenproject.org, Anthony PERARD , Michal Orzel , Julien Grall , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , Stefano Stabellini , Daniel Smith , "michal.zygowski@3mdeb.com" , Oleksii Kurochko , Andrew Cooper References: <20250612100705.21988-1-frediano.ziglio@cloud.com> <586a66e5-4b11-485e-955a-da5fc3183737@citrix.com> <1708c939-4b06-4d09-acb8-6965383d91f4@suse.com> Content-Language: en-US From: Jan Beulich Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu3i1cqqSDtVlt+AOVBJBACrZcnHAUSuCXBPy0jOlBhxPqRWv6ND4c9PH1xjQ3NP nxJuMBS8rnNg22uyfAgmBKNLpLgAGVRMZGaGoJObGf72s6TeIqKJo/LtggAS9qAUiuKVnygo 3wjfkS9A3DRO+SpU7JqWdsveeIQyeyEJ/8PTowmSQLakF+3fote9ybzd880fSmFuIEJldWxp Y2ggPGpiZXVsaWNoQHN1c2UuY29tPsJgBBMRAgAgBQJZN5xEAhsDBgsJCAcDAgQVAggDBBYC AwECHgECF4AACgkQoDSui/t3IH4J+wCfQ5jHdEjCRHj23O/5ttg9r9OIruwAn3103WUITZee e7Sbg12UgcQ5lv7SzsFNBFk3nEQQCACCuTjCjFOUdi5Nm244F+78kLghRcin/awv+IrTcIWF hUpSs1Y91iQQ7KItirz5uwCPlwejSJDQJLIS+QtJHaXDXeV6NI0Uef1hP20+y8qydDiVkv6l IreXjTb7DvksRgJNvCkWtYnlS3mYvQ9NzS9PhyALWbXnH6sIJd2O9lKS1Mrfq+y0IXCP10eS FFGg+Av3IQeFatkJAyju0PPthyTqxSI4lZYuJVPknzgaeuJv/2NccrPvmeDg6Coe7ZIeQ8Yj t0ARxu2xytAkkLCel1Lz1WLmwLstV30g80nkgZf/wr+/BXJW/oIvRlonUkxv+IbBM3dX2OV8 AmRv1ySWPTP7AAMFB/9PQK/VtlNUJvg8GXj9ootzrteGfVZVVT4XBJkfwBcpC/XcPzldjv+3 HYudvpdNK3lLujXeA5fLOH+Z/G9WBc5pFVSMocI71I8bT8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 07.10.2025 16:23, Marek Marczykowski-Górecki wrote: > On Tue, Oct 07, 2025 at 04:12:13PM +0200, Jan Beulich wrote: >> On 02.10.2025 16:10, Marek Marczykowski-Górecki wrote: >>> On Thu, Oct 02, 2025 at 02:05:56PM +0100, Andrew Cooper wrote: >>>> On 12/06/2025 11:07 am, Frediano Ziglio wrote: >>>>> For xen.gz file we strip all symbols and have an additional >>>>> xen-syms file version with all symbols. >>>>> Make xen.efi more coherent stripping all symbols too. >>>>> xen.efi.elf can be used for debugging. >>>>> >>>>> Signed-off-by: Frediano Ziglio >>> >>> Generally, >>> Reviewed-by: Marek Marczykowski-Górecki >> >> Just to double check: You offer this after having read (and discarded) my >> comments on v1, which v2 left largely unaddressed? > > You mean the one about objcopy result used for debugging? I didn't see > that before, since I wasn't in cc on v1... > > Anyway, are you aware of some specific objcopy issue. Or in other words: > would xen.efi.elf _currently_ be broken (as in - unusable for > debugging/disassembly)? I can't tell. I've seen fair parts of the code in the course of addressing various issues, and I would be very surprised if all of that was working correctly. > If not, then I take that relevant part of your > objection is mostly about inconsistent naming (xen.gz -> xen-syms, vs > xen.efi -> xen.efi.elf). Would xen-syms.efi.elf be better? Plus the one asking to strip only debug info, but not the symbol table. (And no, none of the suggested names look really nice to me.) Plus the one indicating that the change better wouldn't be made in the first place. As said, to deal with size issues we already have machinery in place. Not very nice machinery, but it's apparently functioning. For context, and to avoid the argument that GNU objcopy and strip are built from the same source file: The objcopy invocation here is to alter the format, whereas the strip invocation is merely to remove data without changing the format. The weakness in binutils, to a fair part due to a lack of routine testing, is with format conversions. (And yes, routine testing, as nice as it would be to have such, doesn't fit very well with how testing overall works, as commonly only the default format of a particular target would be tested.) Jan