Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp244356pxu; Thu, 7 Jan 2021 03:57:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJw+4bSDPp2upKUM1WP4XF8LiwLUrijXs2Q9973JRXd2jY6tTYsC1Dot/lsSL/bifksqX+lz X-Received: by 2002:a50:a692:: with SMTP id e18mr1391813edc.233.1610020647560; Thu, 07 Jan 2021 03:57:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610020647; cv=none; d=google.com; s=arc-20160816; b=Qgxz06bAUBVyYafAnvN27XxW2GJnUV4aCtIJo3uJ1BGhqHocelh/AhrFmvy5J3q+lM N47qzuTkFXxNOigLu/khfYMolUCDQU7hROyxb1uWLsQ12RheYiSbC2rt2shyKq0a8V/c vAwp/kdMUw73uS9EUhSWHUv4J3oYuxRKRXVyy2Or6DPA1qbpgl659RWivMPhJfrg78UW rUHvpB11a+JTpUo6sR5BjIfBn9qFDbNeP7de7Z8S37+xjJ5Sp6JsTolH+vynP6lm0kAf 8lqW3Uki7dOYjoFvDY2n5ge9A01me2jHAPESIzv/S3nLvxV1VKdqyLHG5s4/wVs9tEzu q0yQ== 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=9oCj7QKLJWJNGcOnNqI17iIRyczWE6M4kFx9CTLO44o=; b=yR8Uw4BaxD4RcZQH9ls/PlYDAG9gtG6pmX7bKsDtu/1un1y+peVH9Cvfgsxgo31BLl 2hrozu6YGp78vutDcZ/UZJyDorr1oWnHlIx9nW7W94ueHziOQXEMQtXn7PWeuGYNBkzQ dRpkD4gVDn3KySiQGSGGZ9XYG72XbrKFTJd3l5Fraz3Ydx8Xtrt/eJ9BdRD++Vz43K4J 1UlBLWli7oV8F27BB1QRA2aY+elYA35qSODiBfqLAmIFpvZILB2WLGVN9esJ6hQyDUhZ GHjJvFkjBjAouInfy9eNuujHmfH7Om6I6OeAvnuHrHj2z9q6bW0ya3RqhcVKKSu7bm+I dpdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=PX7Idcsm; 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 nw24si2176622ejb.647.2021.01.07.03.57.04; Thu, 07 Jan 2021 03:57:27 -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=PX7Idcsm; 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 S1728136AbhAGLzV (ORCPT + 99 others); Thu, 7 Jan 2021 06:55:21 -0500 Received: from mail-40136.protonmail.ch ([185.70.40.136]:34561 "EHLO mail-40136.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728047AbhAGLzS (ORCPT ); Thu, 7 Jan 2021 06:55:18 -0500 Date: Thu, 07 Jan 2021 11:54:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1610020456; bh=9oCj7QKLJWJNGcOnNqI17iIRyczWE6M4kFx9CTLO44o=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=PX7IdcsmptB95flrpg7vbA9aXY9Z4x0rBaPZAqWBLPxiyKVct33PYc+tD+iFojHb5 /WQ4rauUjUGQrB3wCWthec91WMP36cR/ZvDcSR9I5pSObxgE+10VkNJc8R53cP7xJ3 Z/5yOorsBQGDFzv5/WRP23wfcYHdX1ZW4R5imCcHYifo9kvN2mZyucsp7W4ENoOgsX EsQ9+rXIirHMLfO/Znuy0UK0+OzPyRZg++nPcXI+1dZg4KNT1oCL2f7lMYlhqFbIwx a2EqXM2d79aeE4dwJGr27V5f37DCMYsoHHMnz+b6stL0v3IW+FvWdWxsFM8GIheh1g 2lJ4rFqEVgF1Q== To: Thomas Bogendoerfer From: Alexander Lobakin Cc: Arnd Bergmann , Kees Cook , Nathan Chancellor , Nick Desaulniers , Fangrui Song , Huacai Chen , Pei Huang , Jiaxun Yang , Alexander Lobakin , Sami Tolvanen , Ingo Molnar , Ralf Baechle , Corey Minyard , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, stable@vger.kernel.org, clang-built-linux@googlegroups.com Reply-To: Alexander Lobakin Subject: [PATCH v3 mips-next 5/7] MIPS: vmlinux.lds.S: explicitly declare .got table Message-ID: <20210107115329.281266-5-alobakin@pm.me> In-Reply-To: <20210107115329.281266-1-alobakin@pm.me> References: <20210107115120.281008-1-alobakin@pm.me> <20210107115329.281266-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 LLVM stack generates GOT table when building the kernel: ld.lld: warning: :(.got) is being placed in '.got' According to the debug assertions, it's not zero-sized and thus can't be handled the same way as .rel.dyn (like it's done for x86). Use the ARM/ARM64 path here and place it at the end of .text section. Reported-by: Nathan Chancellor Signed-off-by: Alexander Lobakin --- arch/mips/kernel/vmlinux.lds.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/kernel/vmlinux.lds.S b/arch/mips/kernel/vmlinux.lds.= S index 0f736d60d43e..4709959f6985 100644 --- a/arch/mips/kernel/vmlinux.lds.S +++ b/arch/mips/kernel/vmlinux.lds.S @@ -69,6 +69,7 @@ SECTIONS =09=09*(.text.*) =09=09*(.fixup) =09=09*(.gnu.warning) +=09=09*(.got) =09} :text =3D 0 =09_etext =3D .;=09/* End of text section */ =20 --=20 2.30.0