[PATCH] D17956: Set the thumb flag for thumb symbols coming from an ELF file

Tamas Berghammer via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 5 05:17:02 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL265387: Set the thumb flag for thumb symbols coming from an ELF file (authored by tberghammer).

Changed prior to commit:
  http://reviews.llvm.org/D17956?vs=50035&id=52674#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D17956

Files:
  llvm/trunk/include/llvm/Object/ELFObjectFile.h

Index: llvm/trunk/include/llvm/Object/ELFObjectFile.h
===================================================================
--- llvm/trunk/include/llvm/Object/ELFObjectFile.h
+++ llvm/trunk/include/llvm/Object/ELFObjectFile.h
@@ -494,6 +494,8 @@
           Name.startswith("$a"))
         Result |= SymbolRef::SF_FormatSpecific;
     }
+    if (ESym->getType() == ELF::STT_FUNC && (ESym->st_value & 1) == 1)
+      Result |= SymbolRef::SF_Thumb;
   }
 
   if (ESym->st_shndx == ELF::SHN_UNDEF)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17956.52674.patch
Type: text/x-patch
Size: 492 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160405/8e154777/attachment.bin>


More information about the llvm-commits mailing list