[PATCH v2 08/18] arm64: don't disable ADR_PREL_PG_HI21* with ARM64_ERRATUM_843419
From: Ard Biesheuvel <hidden>
Date: 2017-11-16 23:20:51
Also in:
linux-kbuild, lkml
From: Ard Biesheuvel <hidden>
Date: 2017-11-16 23:20:51
Also in:
linux-kbuild, lkml
On 16 November 2017 at 23:09, Sami Tolvanen [off-list ref] wrote:
On Thu, Nov 16, 2017 at 10:14:17PM +0000, Ard Biesheuvel wrote:quoted
OK, so my concern here is that this code probably only operates on fully linked binaries, and not partially linked object files like kernel modules.Right. That makes sense.quoted
What is preventing us from using the large model with clang?We pass -mcmodel=large to clang, but I just confirmed that the attribute isn't stored in LLVM IR, which means it's not used during link time compilation. I'll see if we can solve this problem by passing the correct code model directly to LLVMgold instead. Thanks for pointing this out.
So at which point is the IR in a partially linked object file converted into executable code?