[lld] [WIP][lld] Support thumb PLTs for cortex-M (PR #86223)

Peter Smith via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 22 04:30:42 PDT 2024


================
@@ -194,6 +194,10 @@ static void updateSupportedARMFeatures(const ARMAttributeParser &attributes) {
   if (arch >= ARMBuildAttrs::CPUArch::v8_M_Base &&
       profile == ARMBuildAttrs::MicroControllerProfile)
     config->armCMSESupport = true;
+
+  // The Cortex-M processors only support Thumb.
----------------
smithp35 wrote:

As mentioned earlier you may want to be a bit more selective:
* v6-m and v8-m.base can't realistically support PLTs without a very complex instruction sequence.
* Thumb-2 PLTs can be useful outside M profile. 

https://github.com/llvm/llvm-project/pull/86223


More information about the llvm-commits mailing list