Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13779128pxu; Mon, 4 Jan 2021 04:23:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxGBpwy3d5JRgVXHmff/LEDdcYPDLqLbjH5DipUQnYvxtwyhzI/bLZ+MQG8t8oGjvlTkVYP X-Received: by 2002:a05:6402:212:: with SMTP id t18mr71156597edv.37.1609763023837; Mon, 04 Jan 2021 04:23:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609763023; cv=none; d=google.com; s=arc-20160816; b=XVMOZxLiXDKJim6SHP2oa74zyaiGYqA7DRNMPZAYC/VFxhiMzymGx6EDwCccwx8HUP kK1oeL5IyJoWS+kKYjrlXu/8C/8Sxw5bWr8PtOMq4JeejkVjl73bTbO0N3hRZfwBG3jS RJvEBCmgo9nLt4GI5xeaAZQJ1bOUchtNYDEGWLDkbf+YmuEpM5sIzBCnLhV7N6oYgu0b OplO5axwWfJk1Q5FLr2zEBJt4m66wlPhLJvtyCpjbql3YpE1ikGQhM/bKZUMe0lzSPpL az+CLgYAHSnT2YHWcATQRksTpy62hENK8dr9CrKcLxqmS/U76rPs/tyQxRdLP2sFD/+N mvsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:reply-to:cc:from:to :dkim-signature:date; bh=qSKUMkjU5GlKT1yGdK7US3YKLfx4lwIL2x207qkS1m4=; b=G0sQMf02veRFjAilxyHPb5DJKy9vdO1BguXjuwrRaXhuGWUb3+ymFAMjiPta9AFKwD WB2UckjK9CziTUIPN/PJ8qxCmnVXOpVBS/gu5cyiFDTVay/2C/4hDbnbkoaQ7rJgtRQU OCK7FT8/4aqdaHayNKX7lZapsEv2SGRNklRhIXSp31fCVHscgFPjO05IKcvLqxb48+nm omlac3Z62HGzEODvMjmxGSikSenDTBQtK4Lh3FSy8g4V9lR2ZmQiL5wKqv0OjGkOPY9y eWDYOQrE4qWdz9Fz5Okr9EV4HQRwfOD2hnYsl581R+kiUtYhjEPPAaJLW140tI4nmhoh e1Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=ZRS6F78X; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j1si31157544edn.611.2021.01.04.04.23.20; Mon, 04 Jan 2021 04:23:43 -0800 (PST) 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=pass header.i=@pm.me header.s=protonmail header.b=ZRS6F78X; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726129AbhADMVk (ORCPT + 99 others); Mon, 4 Jan 2021 07:21:40 -0500 Received: from mail-40134.protonmail.ch ([185.70.40.134]:54783 "EHLO mail-40134.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726325AbhADMVk (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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 =09=09/* ABI crap starts here */ =09=09*(.MIPS.abiflags) =09=09*(.MIPS.options) +=09=09*(.eh_frame) =09=09*(.options) =09=09*(.pdr) =09=09*(.reginfo) -=09=09*(.eh_frame) +=09=09*(.rel.dyn) =09} } --=20 2.30.0