diff options
author | Jiaxun Yang | 2020-05-06 13:52:45 +0800 |
---|---|---|
committer | Thomas Bogendoerfer | 2020-05-07 10:31:01 +0200 |
commit | ff487d41036035376e47972c7c522490b839ab37 (patch) | |
tree | 3fd4276e90bb58d26b6df6c6ff4f586457da7969 /arch/mips/pci | |
parent | 53635eb2e24b96b7f2d308b7ac74641c8e2e112c (diff) |
MIPS: Truncate link address into 32bit for 32bit kernel
LLD failed to link vmlinux with 64bit load address for 32bit ELF
while bfd will strip 64bit address into 32bit silently.
To fix LLD build, we should truncate load address provided by platform
into 32bit for 32bit kernel.
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Link: https://github.com/ClangBuiltLinux/linux/issues/786
Link: https://sourceware.org/bugzilla/show_bug.cgi?id=25784
Reviewed-by: Fangrui Song <maskray@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Tested-by: Nathan Chancellor <natechancellor@gmail.com>
Cc: Maciej W. Rozycki <macro@linux-mips.org>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/pci')
0 files changed, 0 insertions, 0 deletions