[llvm-dev] ARM64, dropping ADRP instructions, and ld.lld

Eric Gorr via llvm-dev llvm-dev at lists.llvm.org
Mon May 21 05:31:15 PDT 2018


Hello,

I am working in an embedded environment with somewhat restrictive memory
requirements where the page alignment requirements of an ADRP instruction
cannot be guaranteed.

With the ld program inside of the Xcode, there is a -preload flag which
causes ADRP instructions to be dropped, and generates code that is 100%
position independent.

As near as I can determine, ld.lld does not have this same feature. I am
wondering if I am missing something, if such a feature is being planned, or
if there is an alternative I have not considered yet.

Regards,
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180521/f69a5069/attachment.html>


More information about the llvm-dev mailing list