[llvm] [JITLink][AArch32] Fix Unaligned Data Symbol Address Resolution (PR #97030)

Eymen Ünay via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 28 04:14:07 PDT 2024


================
@@ -200,6 +200,9 @@ class ELFLinkGraphBuilder_aarch32
 
 protected:
   TargetFlagsType makeTargetFlags(const typename ELFT::Sym &Sym) override {
+    // Data symbols do not have Arm or Thumb flags.
+    if (Sym.getType() == ELF::STT_OBJECT)
+      return TargetFlagsType{};
----------------
eymay wrote:

Agree but I had to keep it because of a failed assert in https://github.com/llvm/llvm-project/blob/f1faba25433c971f024dd8a29da14020246e89ec/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp#L52

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


More information about the llvm-commits mailing list