diff options
author | Nathan Chancellor <natechancellor@gmail.com> | 2020-12-08 01:34:16 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2020-12-21 12:19:21 +0100 |
commit | 0cda9bc15dfc459bd178d6ba93389df52dd57957 (patch) | |
tree | c8b13e68e2b00a9477db11bdc394d5c5cd486725 /samples/nitro_enclaves | |
parent | ARM: 9037/1: uncompress: Add OF_DT_MAGIC macro (diff) | |
download | linux-0cda9bc15dfc459bd178d6ba93389df52dd57957.tar.xz linux-0cda9bc15dfc459bd178d6ba93389df52dd57957.zip |
ARM: 9038/1: Link with '-z norelro'
When linking a multi_v7_defconfig + CONFIG_KASAN=y kernel with
LD=ld.lld, the following error occurs:
$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- LLVM=1 zImage
ld.lld: error: section: .exit.data is not contiguous with other relro sections
LLD defaults to '-z relro', which is unneeded for the kernel because
program headers are not used nor is there any position independent code
generation or linking for ARM. Add '-z norelro' to LDFLAGS_vmlinux to
avoid this error.
Link: https://github.com/ClangBuiltLinux/linux/issues/1189
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'samples/nitro_enclaves')
0 files changed, 0 insertions, 0 deletions