Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp88433ybv; Fri, 21 Feb 2020 23:44:30 -0800 (PST) X-Google-Smtp-Source: APXvYqxpX3+vX9coimgpRrQDDt4rflS5Mvq1dtjQawgRlnH68dSI2A/Slu5I+jzO8QdYJe4v7px4 X-Received: by 2002:a9d:5e82:: with SMTP id f2mr30575784otl.240.1582357470004; Fri, 21 Feb 2020 23:44:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582357469; cv=none; d=google.com; s=arc-20160816; b=K6fifURn/Ultfi41ZitquOLcNQkrIwgEKJHVmoAGS1MazS0njvq02mk4rXT9JPg7N4 8ounfX/Qzxk5ZZX8p67Edzk4/bo9UnMGHUkKUQtU54/sqwCI2ao1jIFFkSI9uFs6ZEQ6 1HNRc92iHb3ak6vAuvB/MPXhcPcQf07NWJevT3d7dpIqbi74sbEHbJmm+3bsCf0SLWq2 nnRpA76la4qsdhK1UZxJ1FKgiuX20SwzN+Zk8kV+JBxBGmYYQpiJHHGXlpx/EosGl7Yy gyWyUIPl2mxTONejFpsXgBNauqpdK5AiTSkk0TpITpzfkUZ//YvkWk4bhm8WnCzaRDxH iMjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=kzfaNNUY7sL+bzzMyCJL/b6vBfV9JuThvluB5Z9akUc=; b=mF+vY05QEsqCUD4hk4DO6pp5O/gD+NcqOtMGmzF4HTuapRNCBeUPwDhJ30JFghyHRG wEFWrSii7EGruEmlK2skvE300aIIeUOoBpcmlQ2P7v+7fDwCmgI/FmsyRg4DUv+GHEef Lmlw5qW8TMIkfD9njJzEUYjfbtcKk05Eo0c0U5/xRR+wn+P8OQouvev2zG2ETImDkToG zV1VlApPxI/JaYdWoVfHS8b4b1sWNGPRlfYpyJo87isHz34beMVSSfzHnl/gKw5EWchG UsHM09Iy/yRdJL4/guF1blaKTkM83+WEzetYsHXN20HDn9OP1OZDK65vH5CI1kvyQwlA L1/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Oe6C3Dxu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z1si2921809otp.70.2020.02.21.23.44.17; Fri, 21 Feb 2020 23:44:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Oe6C3Dxu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726895AbgBVHnF (ORCPT + 99 others); Sat, 22 Feb 2020 02:43:05 -0500 Received: from mail.skyhub.de ([5.9.137.197]:44412 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726294AbgBVHnF (ORCPT ); Sat, 22 Feb 2020 02:43:05 -0500 Received: from zn.tnic (p200300EC2F1C5400284D3F3FD3B9EA68.dip0.t-ipconnect.de [IPv6:2003:ec:2f1c:5400:284d:3f3f:d3b9:ea68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 615F51EC05FD; Sat, 22 Feb 2020 08:43:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1582357384; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=kzfaNNUY7sL+bzzMyCJL/b6vBfV9JuThvluB5Z9akUc=; b=Oe6C3Dxu0fmk1vx2aaKdm//r7aVn5uPPOPDurvHAf9sS5C3jgiLbUGpEzKhxHlFRr5YEm2 xglRW+pAKyyWAyHsHw5g8lIuABc1rGfFfjue+qgo00uwVmaSqyDaaapiI0+nDtq0IxwPMc BWgOi8Vy0Or5XYRysem82ZWRKyeS418= Date: Sat, 22 Feb 2020 08:42:54 +0100 From: Borislav Petkov To: Fangrui Song Cc: Nathan Chancellor , Arvind Sankar , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Michael Matz Subject: Re: [PATCH 2/2] x86/boot/compressed: Remove unnecessary sections from bzImage Message-ID: <20200222074254.GB11284@zn.tnic> References: <20200109150218.16544-1-nivedita@alum.mit.edu> <20200109150218.16544-2-nivedita@alum.mit.edu> <20200222050845.GA19912@ubuntu-m2-xlarge-x86> <20200222065521.GA11284@zn.tnic> <20200222070218.GA27571@ubuntu-m2-xlarge-x86> <20200222072144.asqaxlv364s6ezbv@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200222072144.asqaxlv364s6ezbv@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 21, 2020 at 11:21:44PM -0800, Fangrui Song wrote: > In GNU ld, it seems that .shstrtab .symtab and .strtab are special > cased. Neither the input section description *(.shstrtab) nor *(*) > discards .shstrtab . I feel that this is a weird case (probably even a bug) > that lld should not implement. Ok, forget what the tools do for a second: why is .shstrtab special and why would one want to keep it? Because one still wants to know what the section names of an object are or other tools need it or why? Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette