Re: [PATCH] arm64/efi: Mark __efistub_stext_offset as an absolute symbol explicitly

2019-06-26 Thread Will Deacon
On Wed, Jun 26, 2019 at 09:07:00AM +0200, Ard Biesheuvel wrote: > On Wed, 26 Jun 2019 at 06:20, Nathan Chancellor > wrote: > > > > After r363059 and r363928 in LLVM, a build using ld.lld as the linker > > with CONFIG_RANDOMIZE_BASE enabled fails like so: > > > > ld.lld: error: relocation

Re: [PATCH] arm64/efi: Mark __efistub_stext_offset as an absolute symbol explicitly

2019-06-26 Thread Ard Biesheuvel
On Wed, 26 Jun 2019 at 06:20, Nathan Chancellor wrote: > > After r363059 and r363928 in LLVM, a build using ld.lld as the linker > with CONFIG_RANDOMIZE_BASE enabled fails like so: > > ld.lld: error: relocation R_AARCH64_ABS32 cannot be used against symbol > __efistub_stext_offset; recompile with

Re: [PATCH] arm64/efi: Mark __efistub_stext_offset as an absolute symbol explicitly

2019-06-26 Thread Ard Biesheuvel
On Wed, 26 Jun 2019 at 06:20, Nathan Chancellor wrote: > > After r363059 and r363928 in LLVM, a build using ld.lld as the linker > with CONFIG_RANDOMIZE_BASE enabled fails like so: > > ld.lld: error: relocation R_AARCH64_ABS32 cannot be used against symbol > __efistub_stext_offset; recompile with

[PATCH] arm64/efi: Mark __efistub_stext_offset as an absolute symbol explicitly

2019-06-25 Thread Nathan Chancellor
After r363059 and r363928 in LLVM, a build using ld.lld as the linker with CONFIG_RANDOMIZE_BASE enabled fails like so: ld.lld: error: relocation R_AARCH64_ABS32 cannot be used against symbol __efistub_stext_offset; recompile with -fPIC Fangrui and Peter figured out that ld.lld is incorrectly