Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1781359pxk; Tue, 1 Sep 2020 07:40:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyf3LksMCV9Jwj93eCMlnW1O3Q6ctTkkPAJAevzfH22B7CONuFYDHj/8DYpRp2P3y2RWDPr X-Received: by 2002:a17:907:72cd:: with SMTP id du13mr1883011ejc.67.1598971246766; Tue, 01 Sep 2020 07:40:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598971246; cv=none; d=google.com; s=arc-20160816; b=MUUhQ6+8wcK+9G+qzlVOYTvSU6vT3lMF66QmafRlMUClq99WfCBa2BC3MpQqNY9hjj wTWUsXUm/b82HyVsYP74E8cL8eriph339guMv+qjWyBVQJuI3yAQAlfU/KVrcxH09Ht9 afVAJM9UPcTeUyFgy0QfVawNxqJVyDrF2CXGvoZwD+7Jiy0EH5z/8MdGRgA9SovS4OdI tvz9+cG5GpK/gZrqYBjvwUUoHITNZSy/uZNH0ZUTD8WU4cyql2tKwJXtw3hUFVbcr8Ti sE0LElk83qQzcXg7s+Stae2ciot97rI6nlSaU+FkGSccd+Q2xbVxYHI6s+rBfN2DTm14 IMiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:dkim-signature :dkim-signature:date; bh=7TF5bffiWAtpwidWPHVFUAUsl9G1rNNk8HDTdIk9Zc8=; b=AAmtQkQxBTg59YjyeNQMuqhm5QzEehw4ifSJYoBGgwb7EKFY3M0idEPdVvCPwqH6bR kvZAstBmD7cZDnxH18Cu/lkrNhUUgcB/+tJe2BAC6yNF6yYmWAtlejlZD4/GZC4e0awM tj58XzXGild+F+jQSMjJE7IUhwhVmn4tqgerih1wSWJ+J4ZkkLRGtQ6rzYVheKcfK4Bh +frsf/63yO7rHj8u5kwY3XUL2UDIVC9pKIxXN22mRujHU7k6TKT84m4pTIhw8rTsNLXP rMH1Mo/pEk0dp8v4bGyTrBdc/aS4NyOQV8nJUwFxm3uEcOBETH6YqOQ7wnM5Bsu9FcFj FllQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=Wxn4BsDg; dkim=neutral (no key) header.i=@vger.kernel.org; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cq28si707692edb.474.2020.09.01.07.39.06; Tue, 01 Sep 2020 07:40:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=Wxn4BsDg; dkim=neutral (no key) header.i=@vger.kernel.org; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728275AbgIAOTW (ORCPT + 99 others); Tue, 1 Sep 2020 10:19:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727865AbgIALt0 (ORCPT ); Tue, 1 Sep 2020 07:49:26 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3ACD9C06125F; Tue, 1 Sep 2020 04:48:04 -0700 (PDT) Date: Tue, 01 Sep 2020 11:47:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1598960880; h=from:from:sender:sender:reply-to: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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7TF5bffiWAtpwidWPHVFUAUsl9G1rNNk8HDTdIk9Zc8=; b=Wxn4BsDgMiaUqZXOUMySyb+eX8zXhNWuNCqked+7Arzb+1dryuQ6rYt/iBQPAWIhTTjZ+u udECah+aIJ/Xk4glN7HPbbDMLNbQuZhleuvrK+BdjKRyGWTOkyXANwTdnxw3NZeab5OtV2 /0ptOyQYcf+y2Z30o+EMcFrfXFUN5p+ICBaUI6O1xVq6JeJmiixbILvE9R2Y6kzZzi6ACi uaC6xb3u9RGnDknTA0QCo5hdCGuk4NTFO0nQCR28ciCHzq4+/xy6XnKQ3cWPjU0Xybv3fI 7mBySEvVwCFJb3HycoQjSZVnCE8nzffCRI8zTAvpAcpmQdTqCCxMVJTLIF1Ugw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1598960880; h=from:from:sender:sender:reply-to: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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7TF5bffiWAtpwidWPHVFUAUsl9G1rNNk8HDTdIk9Zc8=; b=i9+Jf1zj+gmAnvKliv4krRKO8ak6SLcJj2K3O/M0lkx28IrN7uNRWiJj6GybK8uIrp4H1P eNtBdsww2zbHiIAQ== From: "tip-bot2 for Kees Cook" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: core/build] vmlinux.lds.h: Add .symtab, .strtab, and .shstrtab to ELF_DETAILS Cc: Fangrui Song , Kees Cook , Ingo Molnar , linux-arch@vger.kernel.org, x86 , LKML In-Reply-To: <20200821194310.3089815-6-keescook@chromium.org> References: <20200821194310.3089815-6-keescook@chromium.org> MIME-Version: 1.0 Message-ID: <159896087977.20229.5184709626139315991.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the core/build branch of tip: Commit-ID: a840c4de569f610bc5ee043b613c35b779d23186 Gitweb: https://git.kernel.org/tip/a840c4de569f610bc5ee043b613c35b779d23186 Author: Kees Cook AuthorDate: Fri, 21 Aug 2020 12:42:46 -07:00 Committer: Ingo Molnar CommitterDate: Tue, 01 Sep 2020 09:50:35 +02:00 vmlinux.lds.h: Add .symtab, .strtab, and .shstrtab to ELF_DETAILS When linking vmlinux with LLD, the synthetic sections .symtab, .strtab, and .shstrtab are listed as orphaned. Add them to the ELF_DETAILS section so there will be no warnings when --orphan-handling=warn is used more widely. (They are added above comment as it is the more common order[1].) ld.lld: warning: :(.symtab) is being placed in '.symtab' ld.lld: warning: :(.shstrtab) is being placed in '.shstrtab' ld.lld: warning: :(.strtab) is being placed in '.strtab' [1] https://lore.kernel.org/lkml/20200622224928.o2a7jkq33guxfci4@google.com/ Reported-by: Fangrui Song Signed-off-by: Kees Cook Signed-off-by: Ingo Molnar Cc: linux-arch@vger.kernel.org Link: https://lore.kernel.org/r/20200821194310.3089815-6-keescook@chromium.org --- include/asm-generic/vmlinux.lds.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index cadcbc3..98d013d 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -823,7 +823,10 @@ /* Required sections not related to debugging. */ #define ELF_DETAILS \ - .comment 0 : { *(.comment) } + .comment 0 : { *(.comment) } \ + .symtab 0 : { *(.symtab) } \ + .strtab 0 : { *(.strtab) } \ + .shstrtab 0 : { *(.shstrtab) } #ifdef CONFIG_GENERIC_BUG #define BUG_TABLE \