Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1101138pxu; Wed, 6 Jan 2021 12:16:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJzIqbwkmMGDn05oVqNV9EgTv3f7BTswlOw9O7HajbWCG+qKr7IKdvLU4w567ZthAOPmOA59 X-Received: by 2002:a17:906:4d47:: with SMTP id b7mr3906174ejv.420.1609964216261; Wed, 06 Jan 2021 12:16:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609964216; cv=none; d=google.com; s=arc-20160816; b=NtFIdfpQ+WRSmVYIA6c9aAvxwf+s68ddGuuh6LWM3UUwkqH8o5gdTXb76wuZ65/tRv hxtLU9RjqZ65hnVvyhBqgjjc7dAD6+HovnHfNSfBfO2O409KLEZk28S9nIxtD993i0de PzKEv2RSwBiRpQq8nK9F4j8fNcubdETTPqDsJ9/3kgb50aY88Zth7FKpsKSpl3l+Bxt8 HiYCwAZ5BRPbuovtQd6K+i46s/AacQmVSMHjWrvshV9K08Q+5d7ND5WeORvV5t/fl0Nj 2fJLJMa2HFbwKyebITxk9jdwNd1V7bKtQJyjATt67h/wDj+NG9MphwdKWBgufj51dkbT DhyQ== 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=WJzK6tqy2kudlSwkM4O7gMAIJYEZptuNFADdyTc5dhI=; b=AZN89ZzQ/Mnd4taoqWP7tif0ZcqZ0rs5SnbJkSXUrbksByQKbzdHOh4LrjQIBsDQ6F 4J6DbbF+jtjnntLJkBShnw8fcQigdujNAz2LdbdiXOmjWj6dxyXlyLLPwANm3jyd9YOY kFNNxqa4s3yMAFwmY6DcHXwKPJDrmNQ5VUF+J5ImhS2411nWIBTX2gOYD2gDHNxoVO/o FtRynSdtDM7MkJWTWOQ6du+v0A0mfC11Jum6tYGsE+BXAjGsFFjgDAdtmpDI9S4uuNBY qXfxnBlVczE+gNlcHXcDCTcAXY9OJBE1y+KxH5BejKC++Z+itZe2SCTroxhmscg7PjQd p1Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=HwpAema3; 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 gj13si1235211ejb.521.2021.01.06.12.16.32; Wed, 06 Jan 2021 12:16:56 -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=HwpAema3; 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 S1726763AbhAFUPJ (ORCPT + 99 others); Wed, 6 Jan 2021 15:15:09 -0500 Received: from mail2.protonmail.ch ([185.70.40.22]:13251 "EHLO mail2.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726712AbhAFUPJ (ORCPT ); Wed, 6 Jan 2021 15:15:09 -0500 X-Greylist: delayed 416 seconds by postgrey-1.27 at vger.kernel.org; Wed, 06 Jan 2021 15:15:08 EST Date: Wed, 06 Jan 2021 20:14:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1609964066; bh=WJzK6tqy2kudlSwkM4O7gMAIJYEZptuNFADdyTc5dhI=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=HwpAema3qYw7H0Uk8Mw4bpCmFURtP/90veXgW/rvDH+kzWJzez0CW6Q+786ZxxOyo BvvlWdgX2LfkqmpIXLlZGnXwRx+33dZ9lMdwn7WK1gvuIoF5C5bFi4o9bAvZmir+uF iD2zd0xHjq4zInQxaOJtr/3QDoX0OHxq8Aa6Ld5k0lpFfW/m69oDZU7Mbo98dlEDBI cWpGNjxFxlMYHasUKvfqillR87YtA4VQ/tpA2jQpjK9uyOCQWzLTFM9cRNiFp9qZif bl3GGXkbwyvRMoznX092HfTqPbGau3RgaJHCAmtBS2wMQwAHCa3j6/PD1SUpJWSAL6 AIS0dkxUi8RGw== To: Nathan Chancellor From: Alexander Lobakin Cc: Alexander Lobakin , Thomas Bogendoerfer , 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, clang-built-linux@googlegroups.com Reply-To: Alexander Lobakin Subject: Re: [PATCH mips-next 0/4] MIPS: vmlinux.lds.S sections fix & cleanup Message-ID: <20210106201400.32416-1-alobakin@pm.me> In-Reply-To: <20210104121729.46981-1-alobakin@pm.me> References: <20210104121729.46981-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 From: Nathan Chancellor Date: Mon, 4 Jan 2021 17:09:36 -0700 > On Mon, Jan 04, 2021 at 12:18:10PM +0000, Alexander Lobakin wrote: >> This series hunts the problems discovered after manual enabling of >> ARCH_WANT_LD_ORPHAN_WARN, notably the missing PAGE_ALIGNED_DATA() >> section affecting VDSO placement (marked for stable). >> >> Compile and runtime tested on MIPS32R2 CPS board with no issues. >> >> Alexander Lobakin (4): >> MIPS: vmlinux.lds.S: add missing PAGE_ALIGNED_DATA() section >> MIPS: vmlinux.lds.S: add ".rel.dyn" to DISCARDS >> MIPS: vmlinux.lds.S: add ".gnu.attributes" to DISCARDS >> MIPS: select ARCH_WANT_LD_ORPHAN_WARN >> >> arch/mips/Kconfig | 1 + >> arch/mips/kernel/vmlinux.lds.S | 5 ++++- >> 2 files changed, 5 insertions(+), 1 deletion(-) >> >> -- >> 2.30.0 >> > > Glad to see ARCH_WANT_LD_ORPHAN_WARN catching on :) > > I took this for a spin with clang with malta_kvm_guest_defconfig and I > only see one section unaccounted for: > > $ make -skj"$(nproc)" ARCH=3Dmips CROSS_COMPILE=3Dmipsel-linux-gnu- LLVM= =3D1 O=3Dout/mips distclean malta_kvm_guest_defconfig all > ... > ld.lld: warning: :(.got) is being placed in '.got' > ld.lld: warning: :(.got) is being placed in '.got' > ld.lld: warning: :(.got) is being placed in '.got' > > Looks like most architectures place it in .got (ia64, nios2, powerpc) > or .text (arm64). Addressed in v2, thanks! > Cheers, > Nathan Al