Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1096900pxu; Wed, 6 Jan 2021 12:09:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxOfFaYSgCZrNGREZ5Bn7w+nIrSDCg8LL3zpEt02rRa3qKysrX+Kg4Y8iwpuDzf/mg2ypov X-Received: by 2002:a17:907:9d0:: with SMTP id bx16mr4224988ejc.426.1609963793856; Wed, 06 Jan 2021 12:09:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609963793; cv=none; d=google.com; s=arc-20160816; b=dOZjEkLwHqhEr/hIP1YkWrbSsSIOFnhk8J49PJHyhxDCd+RBUGdR1r2XSyoN8HwdCR /Mo+cNKHUTCHPPDLCyD3tSCyfH9o9iS6s3Cf+652kReNc1KfOEy/qPnZP5jULNrf0vaA 2qx35eNVL8sGNnJrKtFAueYU5dLYpxvh1ngId2OYTY7OrFg0cbTzu/OLwIuptZ02KOW0 //1aFIfSXvkjyMTMu3twxWIgAhVBwiAKFbTyA6AYdQwr5vCPB7IlXc9WcH5IMsS+5ok3 MtLHpDUHal+I+UrYZbz1DiCkRqMR8rl3NKF0+hpK1XPgrmWlksOtYYQKRR4JYOae9Te8 ve6Q== 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 :message-id:subject:reply-to:cc:from:to:dkim-signature:date; bh=y++KTID87p0awo1xB/yYLOezpj3SKaTGHD5nqOFuw5Y=; b=z8i8Lo5oulb4kLmV8qNe1+bMZgODJxJ2nnygQ3spjUIoQ0QGAm4EIW5ht3O8Az9bu4 ChFM9i+1eV74xQOaBGy0LWdH7aiPbP/AG/H8JHxx87BYY4yuiioc7qzDqBFPWAMsRe8R 9F3W8K5eWySKgQkAfXIbw89oaXzxjhjfGCmCeFOk6t7hS8ROH4f1HSqGWtsGtdPANKpl /c7kWaP+HpbIWYYyfAszOqvSEpvzmcxsCh62pMThqj1ZEW/GyODij/55YRQUXIxnn0ug /w0eUD5Olh4EAlDObZ5qLuycAg90KgCMVe53hWNpexMdwj4RTaXwD9MVShoER2faMaCB CMgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=ajaFlDax; 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 sb2si1271315ejb.489.2021.01.06.12.09.30; Wed, 06 Jan 2021 12:09:53 -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=ajaFlDax; 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 S1726993AbhAFUIN (ORCPT + 99 others); Wed, 6 Jan 2021 15:08:13 -0500 Received: from mail1.protonmail.ch ([185.70.40.18]:52244 "EHLO mail1.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726962AbhAFUIM (ORCPT ); Wed, 6 Jan 2021 15:08:12 -0500 Date: Wed, 06 Jan 2021 20:07:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1609963650; bh=y++KTID87p0awo1xB/yYLOezpj3SKaTGHD5nqOFuw5Y=; h=Date:To:From:Cc:Reply-To:Subject:From; b=ajaFlDaxXHQ/kzg8Z62QRL4gWmvnscFm/2xr9pZ2VlUqSwawmqJRc1A4zTtZyBUI+ baiWpEgrPMT6nyubyOwJUf5KJOEZKhVlVXEJTZVSMtV+sNfS0OsgBI52OK7qZbWVv1 VwTyplMFf0L6/01GcGHYyn8fts52MEh9Ojj/AwRIJZlD41vnX9ZPFvdRC7C4X58nhJ rkjsvAYHnfBVO1qQmEShAPxqtCoiMT6TJJpXoj/Y1CARUKPiJAA4fvHO5xklIVovQd yvgjQPNOLETD/rTOIHa7ROWPtze+oHfd5agrQFcPa+8TJkhm4rT5iLfpOXOPMZ5nym MuZxO7ikOsE5Q== To: Thomas Bogendoerfer From: Alexander Lobakin Cc: Alexander Lobakin , Nathan Chancellor , Kees Cook , Fangrui Song , Jiaxun Yang , Alex Smith , Ralf Baechle , Markos Chandras , linux-mips@vger.kernel.org, stable@vger.kernel.org, linux-kernel@vger.kernel.org Reply-To: Alexander Lobakin Subject: [PATCH v2 mips-next 0/4] MIPS: vmlinux.lds.S sections fix & cleanup Message-ID: <20210106200713.31840-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 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. Since v1 [0]: - catch .got entries too as LLD may produce it (Nathan); - check for unwanted sections to be zero-sized instead of discarding (Fangrui). [0] https://lore.kernel.org/linux-mips/20210104121729.46981-1-alobakin@pm.m= e Alexander Lobakin (4): MIPS: vmlinux.lds.S: add missing PAGE_ALIGNED_DATA() section MIPS: vmlinux.lds.S: add ".gnu.attributes" to DISCARDS MIPS: vmlinux.lds.S: catch bad .got, .plt and .rel.dyn at link time MIPS: select ARCH_WANT_LD_ORPHAN_WARN arch/mips/Kconfig | 1 + arch/mips/kernel/vmlinux.lds.S | 39 +++++++++++++++++++++++++++++++++- 2 files changed, 39 insertions(+), 1 deletion(-) --=20 2.30.0