build kernel for arm64 - linker ld ignored -z relro

Alan Modra amodra@gmail.com
Sat Sep 12 06:30:31 GMT 2020
On Sun, Sep 06, 2020 at 04:45:52PM +0000, Milan Buška via Binutils wrote:
> Hello.
> I'm compiling the kernel v.5.8.7 on arm64.
> This is a compilation in a native environment.
> Toolchain:
> glibc v. 2.32
> binutils v. 2.35
> gcc v. 10.2.0
> 
> This is the last part of the output after make Image.
[snip]
>   LD .tmp_vmlinux.kallsyms1
> ld: warning: -z norelro ignored

I suspect you are not configuring binutils correctly for
aarch64-linux.  A target of aarch64-elf for example won't give you a
toolchain supporting relro.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list