From patchwork Mon Jan 4 12:20:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Lobakin X-Patchwork-Id: 11996615 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 C980CC433E9 for ; Mon, 4 Jan 2021 12:21:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 930872075B for ; Mon, 4 Jan 2021 12:21:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726637AbhADMVk (ORCPT ); Mon, 4 Jan 2021 07:21:40 -0500 Received: from mail-40133.protonmail.ch ([185.70.40.133]:30794 "EHLO mail-40133.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726129AbhADMVk (ORCPT ); Mon, 4 Jan 2021 07:21:40 -0500 Date: Mon, 04 Jan 2021 12:20:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1609762858; bh=qSKUMkjU5GlKT1yGdK7US3YKLfx4lwIL2x207qkS1m4=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=ZRS6F78XW6uvtedI4xk4g1iJ+rUb3117NOO/m3AJHy/9CxFxWNLx5gdwDKjyFWgI5 MFCi/uk6pbz7c2TcxFopT9A4g2JobpjzcC2aHktcVT7/lV8qrhCNB5XI4IGqNdWMck X7nrz2ykcuQVR9gS8Uu1aUkShicCzBrDuFX3v7Mv3FKPnkYMd9ns5pxJOI2kRzYpbx yaiwJj1m8b5yPTNVQAKiS8ZP13dBr5DHEqmrJFm6ypmI1rnHjsK/LrsGH+5v0EMaHz O9v36XKIZmmD50PRH6fW4L1Y6JSdTIupjuazO0kN8AQepMLj+97mbm703b1mVIODO5 kLVSIkBU9OQMQ== To: Thomas Bogendoerfer From: Alexander Lobakin Cc: Alexander Lobakin , Kees Cook , Ingo Molnar , Fangrui Song , Jiaxun Yang , Ralf Baechle , Alex Smith , Markos Chandras , linux-mips@vger.kernel.org, stable@vger.kernel.org, linux-kernel@vger.kernel.org Reply-To: Alexander Lobakin Subject: [PATCH mips-next 2/4] MIPS: vmlinux.lds.S: add ".rel.dyn" to DISCARDS Message-ID: <20210104122016.47308-2-alobakin@pm.me> In-Reply-To: <20210104122016.47308-1-alobakin@pm.me> References: <20210104121729.46981-1-alobakin@pm.me> <20210104122016.47308-1-alobakin@pm.me> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org GCC somehow manages to place some of the symbols from main.c into .rel.dyn section: mips-alpine-linux-musl-ld: warning: orphan section `.rel.dyn' from `init/main.o' being placed in section `.rel.dyn' I couldn't catch up the exact symbol, but seems like it's harmless to discard it from the final vmlinux as kernel doesn't use or support dynamic relocations. Misc: sort DISCARDS section entries alphabetically. Signed-off-by: Alexander Lobakin --- arch/mips/kernel/vmlinux.lds.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/mips/kernel/vmlinux.lds.S b/arch/mips/kernel/vmlinux.lds.S index 83e27a181206..1c3c2e903062 100644 --- a/arch/mips/kernel/vmlinux.lds.S +++ b/arch/mips/kernel/vmlinux.lds.S @@ -221,9 +221,10 @@ SECTIONS /* ABI crap starts here */ *(.MIPS.abiflags) *(.MIPS.options) + *(.eh_frame) *(.options) *(.pdr) *(.reginfo) - *(.eh_frame) + *(.rel.dyn) } }