Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp294667pxu; Thu, 7 Jan 2021 05:23:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJzIHNroYD0uCPaYQxCdrue29p/BssYyii87SP3CcrArApP1qG9NU5GlVssxAosnBiUyxc92 X-Received: by 2002:a05:6402:1646:: with SMTP id s6mr1642954edx.319.1610025786948; Thu, 07 Jan 2021 05:23:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610025786; cv=none; d=google.com; s=arc-20160816; b=ab4Kz5HHm410f8Qk08Uy1TqmWVgKgmDsmIKjwesG0Iv2FdfmrdfTr1wcWzg9ulPYcm nrJDZbq7hbwsFS/jBHDnB6S+xxdcoBEt4c3MeJEhOHiR0ccn+Sd722efazlXv7jmOFq+ uME5SBk2niri2Y7i3XQivUvtLPTGPAw2Jg4cwUjYzF6qNw+qcOLpFDInHXYzzie/wfJ8 +O41zPD1As3wShBfavgBHyrDG3zl8lKN/jxSRn5aP9j592Ee0VCVvG8z1skk4Dr7bwrX x98X7H8Vi/HeXY9/SDhCj87qnC7ExPmf6IvNJ4ib9kvJxK3QaqA7Z1IWafP7So8w67ie 5WGg== 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=dvHLIDMkWG0CQpmSfpyWXyuwYYmerVX8UjnRBELcH6XHabki9qkF1zAEuRIP2MuSuL GnQqgibvZ7N8KX3AIwn+zpvRp2Qjg3lFAP2BNwXxNsEZK6WLaO9J8z0ibUsxZxnPZ8FV u4vsTdDXikRwwrBbj7v19k3H8YApuuTxlYzyFgtz+LSuLFDNnO8qGsSiDTXZ8/kj6KYJ 2I3sACh1ziakVYqGAn9c4CnP2UW3fOG/M4r6sxhtBEnYAnlmvok4SmSnNeAnrO5Fmevp rb5iZ3D3gLkQQrocNGYAfqhQxlZ6G4BPFmt4ue9s6a2xu1ZTUy6V8QY2AsaKy/lYIujb a4JA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=lrLPAOvw; 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 t19si2250991edt.283.2021.01.07.05.22.42; Thu, 07 Jan 2021 05:23:06 -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=lrLPAOvw; 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 S1728472AbhAGNVd (ORCPT + 99 others); Thu, 7 Jan 2021 08:21:33 -0500 Received: from mail-40131.protonmail.ch ([185.70.40.131]:34938 "EHLO mail-40131.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728325AbhAGNVc (ORCPT ); Thu, 7 Jan 2021 08:21:32 -0500 Date: Thu, 07 Jan 2021 13:20:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1610025651; bh=9oCj7QKLJWJNGcOnNqI17iIRyczWE6M4kFx9CTLO44o=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=lrLPAOvww0VvEA4BtSTnnUTYtcgzLetcZIBJZI7GJT8o5QacEQyCtZ4AUc6x8k323 jMAKgxOIP62fj4sou0ajm07YYRlfNW0D36sPcxS8N4l1i7zGK+xA6tw6GEFLKtE7l9 zIHmFSEar2TLaHvwmFRtMohUoQFC/j/68PHBVMswYWSIYJ57JpBFWtvGroeUBqL7Qz 9cgckGv6AZjZhxZtQDK7zA0609rtDrXdPmaEq9N8Z6p3pqxbksf3Gycm61TBb4aXPZ guCuLJi8d9Bwh4bS4ApL0AQHSlG8QNR6l8FhH/rJhXAo40NCnfGEkHEUg89uyhEu8c jyYk0VWsux/5g== 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 v4 mips-next 5/7] MIPS: vmlinux.lds.S: explicitly declare .got table Message-ID: <20210107132010.463129-2-alobakin@pm.me> In-Reply-To: <20210107132010.463129-1-alobakin@pm.me> References: <20210107123331.354075-1-alobakin@pm.me> <20210107132010.463129-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