[PATCH] D51089: [LLD] [COFF] Add support for creating range extension thunks for ARM

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 28 13:56:59 PDT 2018


efriedma added inline comments.


================
Comment at: COFF/Chunks.cpp:663
+    0xc0, 0xf2, 0x00, 0x0c, //     movt ip,:upper16:S - (P + (L1-P) + 4)
+    0xfc, 0x44,             // L1: add  ip, pc
+    0x60, 0x47,             //     bx   ip
----------------
Can you use "add pc, ip" instead?  That's not an interworking branch, but I think we can assume the target is Thumb mode here.


https://reviews.llvm.org/D51089





More information about the llvm-commits mailing list