Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4665997pxu; Wed, 21 Oct 2020 02:03:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYFVvoZr1wuxKl7/kSe3e6OhjMFKORTR3VDmQBer2cfbMkAgyiYPXQdzIwNAoyeG7U2NrU X-Received: by 2002:a17:906:4b0f:: with SMTP id y15mr2360653eju.198.1603271025700; Wed, 21 Oct 2020 02:03:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603271025; cv=none; d=google.com; s=arc-20160816; b=pksjmcrXFIhbIpQxIpDYrvL7ZufxkR1krlkY7gimpoP/6edfo8pTVVnmPqK4qMYG1t do899TooI4TbnAJA5jJwwmdZyWWRgLZ2WW94ay8lz26A8/NaUTkyhT3rx+L7gQCs46mV ZyrFtO/4c5fXDgmlMzXM7kq7zMtuYyn2mYyWT1B3uxUvf2wWRJy1DF6fb9Ela9jny8LB XtDb6beKkRNmF/3OeYFA1RdVrUyRGexwCtJ5utUr5ST6LyfsAF27duKGg0DDwQttWFTv ZWkySLhIExZX6YNGo0Svlr4vPyrEOYke7qlZpZgsZakLplBsQ/BZYuYW5K5jdL0Eie4C hgLg== 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:date:subject:cc:to:from :dkim-signature; bh=Yuo6SMWvF+TjKF/EEXqa7aqr6Ufcw+oSf4KwLjznBpg=; b=YPhA5uP6EDE1Fl8USb/2e/tW4CUyP9UXzKRPC/VgxNu67EGWpRRiEOSAza5m/VNiO5 BC+jKqglO6HqDDJWdnTg5J7T2H1SvN0lEW4H5HQDuHlkGSWL0bxw48pcvvToPsTpG7pa zQLjwGmA8vhlibSK5FWFx/atBoGq4ZMGY3hugRpiGWnHCT8IuU3b0SyS/eGs7PsuswXC MzKOsTJUDQ5KmsQLzjgNCxA6zyNCA+nqzNluSvDRYZ1JmpwsPsGKth2H7phtL0LtTDbh W0BLMlk9LCOSTYfLjfjz9u97boGBn9V086gvRF1Nlch83/7gXrJp6P/QHaAghy4MSfbw UzbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DRCtLH5e; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l90si929595edl.249.2020.10.21.02.03.23; Wed, 21 Oct 2020 02:03:45 -0700 (PDT) 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=@kernel.org header.s=default header.b=DRCtLH5e; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408846AbgJTR5T (ORCPT + 99 others); Tue, 20 Oct 2020 13:57:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:43678 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408841AbgJTR5T (ORCPT ); Tue, 20 Oct 2020 13:57:19 -0400 Received: from localhost.localdomain (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 875A62223C; Tue, 20 Oct 2020 17:57:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603216638; bh=9YjFPnAqA0uzYmI3atA5MHEeFfobIzN1G6Wk7DSgOns=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DRCtLH5efl45rulVA4skkhvXE2e17kpae3sBo3DXNKP9PU64bhIS1PYgmIqBiG0g+ rpIS3BHkU3rXss1y60JRwOTsWqm7QdUiZNyPuwHAWJZm+qH5Ag2u2Y0ecRFfPEdH7g J7nR9+tNXy0UshQlH3VwAj1qpMqWXBaAaS8M0SIg= From: Will Deacon To: Catalin Marinas , Nick Desaulniers Cc: kernel-team@android.com, Will Deacon , linux-kernel@vger.kernel.org, Peter Smith , clang-built-linux , stable@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Ard Biesheuvel , =?UTF-8?q?F=C4=81ng-ru=C3=AC=20S=C3=B2ng?= Subject: Re: [PATCH] arm64: link with -z norelro regardless of CONFIG_RELOCATABLE Date: Tue, 20 Oct 2020 18:57:10 +0100 Message-Id: <160319373854.2175971.17968938488121846972.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201016175339.2429280-1-ndesaulniers@google.com> References: <20201016175339.2429280-1-ndesaulniers@google.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 16 Oct 2020 10:53:39 -0700, Nick Desaulniers wrote: > With CONFIG_EXPERT=y, CONFIG_KASAN=y, CONFIG_RANDOMIZE_BASE=n, > CONFIG_RELOCATABLE=n, we observe the following failure when trying to > link the kernel image with LD=ld.lld: > > error: section: .exit.data is not contiguous with other relro sections > > ld.lld defaults to -z relro while ld.bfd defaults to -z norelro. This > was previously fixed, but only for CONFIG_RELOCATABLE=y. Applied to arm64 (for-next/core), thanks! [1/1] arm64: link with -z norelro regardless of CONFIG_RELOCATABLE https://git.kernel.org/arm64/c/3b92fa7485eb Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev