Displaying 2 results from an estimated 2 matches for "vk_got".
Did you mean:
__got
2020 Nov 18
1
invalid symbol kind for ADRP relocation
hi,
does anyone know how to resolve this? It's a very simple IR file (below), fails with:
LLVM ERROR: invalid symbol kind for ADRP relocation
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0. Program arguments: \p\llvm-project-bin32\RelWithDebInfo\bin\llc.exe -O0 debug_output(1).ll -filetype=obj
#0 0x01522349
2013 Sep 25
1
[LLVMdev] arm64 / iOS support
...const GlobalValue *GV, Mangler *Mang, MachineModuleInfo *MMI,
+ unsigned Encoding, MCStreamer &Streamer) const {
+ MCSymbol *sym = getContext().CreateTempSymbol();
+ Streamer.EmitLabel(sym);
+ const MCExpr *expr = MCSymbolRefExpr::Create(
+ Mang->getSymbol(GV), MCSymbolRefExpr::VK_GOT, getContext());
+ expr = MCBinaryExpr::CreateSub(
+ expr,
+ MCSymbolRefExpr::Create(sym, MCSymbolRefExpr::VK_None, getContext()),
+ getContext());
+ return expr;
+}
diff --git a/lib/Target/AArch64/AArch64TargetObjectFile.h b/lib/Target/AArch64/AArch64TargetObjectFile.h
index bf0565...