[PATCH] D51030: [AArch64] Optimise load(adr address) to ldr address

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 21 02:12:06 PDT 2018


dmgreen added a comment.

Unfortunately I'm hitting a number of linker problems in testing this.

- Armlink seems to do fine, but I am testing embedded code there.
- ld.bfd links the test-suite fine with fpic (except for the expected errors where relocations are out of range). But without pic gives an error about relocating against stderr that I'm not sure of yet, but might point to this alignment check being wrong in some way. Unfortunately the errors are not clear what is out of range, it may be a legitimate error (although ld.gold and lld both are "successful" at linking the same program).
- ld.gold doesn't like load literal relocations, producing invalid instructions.
- lld, with some extra patches, does fine for anything that isn't a tls relocation I think.


https://reviews.llvm.org/D51030





More information about the llvm-commits mailing list