From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EA4C3C433E6 for ; Tue, 1 Sep 2020 14:19:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AAC55206CD for ; Tue, 1 Sep 2020 14:19:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Wxn4BsDg"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="i9+Jf1zj" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727918AbgIAOTm (ORCPT ); Tue, 1 Sep 2020 10:19:42 -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 \