[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <160984952218.5069.304716966175823056.b4-ty@arm.com>
Date: Tue, 5 Jan 2021 12:26:03 +0000
From: Catalin Marinas <catalin.marinas@....com>
To: Will Deacon <will@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>
Cc: kernel-team <kernel-team@...roid.com>,
"kernelci . org bot" <bot@...nelci.org>,
linux-arm-kernel@...ts.infradead.org,
Fāng-ruì Sòng <maskray@...gle.com>,
Alan Modra <amodra@...il.com>,
Ard Biesheuvel <ardb@...nel.org>,
Peter Smith <Peter.Smith@....com>,
Quentin Perret <qperret@...gle.com>,
linux-kernel@...r.kernel.org, stable <stable@...r.kernel.org>,
clang-built-linux <clang-built-linux@...glegroups.com>
Subject: Re: [PATCH v2] arm64: link with -z norelro for LLD or aarch64-elf
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
Powered by blists - more mailing lists