[PATCH] D50077: [LLD][ELF][ARM] Add support for Armv5 and Armv6 compatible Thunks
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 31 12:38:57 PDT 2018
efriedma added inline comments.
================
Comment at: ELF/Thunks.cpp:485
+ 0x00, 0xc0, 0x9f, 0xe5, // P: ldr ip, [pc] ; L2
+ 0x0c, 0xf0, 0x8f, 0xe0, // L1: add pc, pc, ip
+ 0x00, 0x00, 0x00, 0x00, // L2: .word S - (P + (L1 - P) + 8)
----------------
I think `add pc, pc, ip` isn't an interworking branch on pre-v7 targets, so you can't use this sequence if the destination is a Thumb function.
https://reviews.llvm.org/D50077
More information about the llvm-commits
mailing list