llvm.org GIT mirror llvm / 12cfa11
Add ARM TARGET2 relocation. The testcase will follow with actualy use-case. Based on the patch by Logan Chien! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167633 91177308-0d34-0410-b5e6-96231b3b80d8 Anton Korobeynikov 7 years ago
3 changed file(s) with 7 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
166166 VK_ARM_TPOFF,
167167 VK_ARM_GOTTPOFF,
168168 VK_ARM_TARGET1,
169 VK_ARM_TARGET2,
169170
170171 VK_PPC_TOC, // TOC base
171172 VK_PPC_TOC_ENTRY, // TOC entry
5959 SRE.getKind() == MCSymbolRefExpr::VK_ARM_GOTOFF ||
6060 SRE.getKind() == MCSymbolRefExpr::VK_ARM_TPOFF ||
6161 SRE.getKind() == MCSymbolRefExpr::VK_ARM_GOTTPOFF ||
62 SRE.getKind() == MCSymbolRefExpr::VK_ARM_TARGET1)
62 SRE.getKind() == MCSymbolRefExpr::VK_ARM_TARGET1 ||
63 SRE.getKind() == MCSymbolRefExpr::VK_ARM_TARGET2)
6364 OS << MCSymbolRefExpr::getVariantKindName(SRE.getKind());
6465 else if (SRE.getKind() != MCSymbolRefExpr::VK_None &&
6566 SRE.getKind() != MCSymbolRefExpr::VK_PPC_DARWIN_HA16 &&
198199 case VK_ARM_GOTTPOFF: return "(gottpoff)";
199200 case VK_ARM_TLSGD: return "(tlsgd)";
200201 case VK_ARM_TARGET1: return "(target1)";
202 case VK_ARM_TARGET2: return "(target2)";
201203 case VK_PPC_TOC: return "tocbase";
202204 case VK_PPC_TOC_ENTRY: return "toc";
203205 case VK_PPC_DARWIN_HA16: return "ha16";
245245 case MCSymbolRefExpr::VK_ARM_TARGET1:
246246 Type = ELF::R_ARM_TARGET1;
247247 break;
248 case MCSymbolRefExpr::VK_ARM_TARGET2:
249 Type = ELF::R_ARM_TARGET2;
250 break;
248251 }
249252 break;
250253 case ARM::fixup_arm_ldst_pcrel_12: