Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp59254pxu; Tue, 5 Jan 2021 05:14:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/OjLAZYzYz///2Osi6yda5mG8XHoMnebBVDe1K+tGRPXHVD1MaAzdrVtVptcK2/cKqKs6 X-Received: by 2002:a05:6402:1592:: with SMTP id c18mr22111750edv.181.1609852498773; Tue, 05 Jan 2021 05:14:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609852498; cv=none; d=google.com; s=arc-20160816; b=0//b4LshrJXt1lyYsYYi/odY/oQ1xjU0duIKEvrJvFDZjeIS3/uvnDGjWqZhsdm2Ru SXjyynrEqc7Z8vTkSa2yZQx/NoibAdAEhbjusYCGtg4l2zuoeqYgEUrkbJ2+ZnF4Q325 tB+gMBCUTFL89NBJkEp/9DyFJ2Wpaf3fc289xe8P3lkGKbzGPfT/HvjFMO9j9Gllap4i qCOk+Ci7cwsQ1UbcOB7IR1Mh6zw6x7vHpqToOtuWHJ+Dc94vQwZwnqoly95+jFw0aiDO NeWuI3ia5kSmiKi4FNzi1Sr0GV9eWYb0QyGHsTOFUIh3n0Dc5UUN2qmJpH9YFmoCWGnC IAPw== 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; bh=rRWAbuCTfcRhnmEUTo0nCbcwEVZqsh4vAzXrn3W3mjY=; b=fCz734zia0ByKWb3Sx1yS01Kv7xUv86U3wJXpkJWeoJMxjbVYgN01GVsnNy/RTndex Sp8KPShGjqMbCkkFwvorrTwPaQl+HA5ao1LQaYJDfWlZbDBtQjCv2TLSlnpib7iuNgns gvb02o210zxZOZ2Hxqo57EdBTxANr2UjPI+7hH0t9hLfI90uwbjwqqrxPGMyFhQBxnC0 vA3+B6r1V7OFUUSbAK3DsVPMiPHoHjNmpl6HrQMOwRacXPRFvblVNmJC8gNE3yIumIEV R0xZAi6FnsxlL0VD/Llq+rAL0QK0Ci8C89FZKgXmfTyD9d9Z+1RBV1p+hnchPCgaNQZM /dNg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb10si16097187edb.192.2021.01.05.05.14.36; Tue, 05 Jan 2021 05:14:58 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730103AbhAEM05 (ORCPT + 99 others); Tue, 5 Jan 2021 07:26:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:49152 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730084AbhAEM0s (ORCPT ); Tue, 5 Jan 2021 07:26:48 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9B39522AAA; Tue, 5 Jan 2021 12:26:05 +0000 (UTC) From: Catalin Marinas To: Will Deacon , Nick Desaulniers Cc: kernel-team , "kernelci . org bot" , linux-arm-kernel@lists.infradead.org, =?UTF-8?q?F=C4=81ng-ru=C3=AC=20S=C3=B2ng?= , Alan Modra , Ard Biesheuvel , Peter Smith , Quentin Perret , linux-kernel@vger.kernel.org, stable , clang-built-linux Subject: Re: [PATCH v2] arm64: link with -z norelro for LLD or aarch64-elf Date: Tue, 5 Jan 2021 12:26:03 +0000 Message-Id: <160984952218.5069.304716966175823056.b4-ty@arm.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201218002432.788499-1-ndesaulniers@google.com> References: <20201218002432.788499-1-ndesaulniers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 17 Dec 2020 16:24:32 -0800, Nick Desaulniers wrote: > With GNU binutils 2.35+, linking with BFD produces warnings for vmlinux: > aarch64-linux-gnu-ld: warning: -z norelro ignored > > BFD can produce this warning when the target emulation mode does not > support RELRO program headers, and -z relro or -z norelro is passed. > > Alan Modra clarifies: > The default linker emulation for an aarch64-linux ld.bfd is > -maarch64linux, the default for an aarch64-elf linker is > -maarch64elf. They are not equivalent. If you choose -maarch64elf > you get an emulation that doesn't support -z relro. > > [...] Applied to arm64 (for-next/fixes), thanks! [1/1] arm64: link with -z norelro for LLD or aarch64-elf https://git.kernel.org/arm64/c/311bea3cb9ee Also added the second Fixes tag with a cc stable. -- Catalin