[llvm-dev] invalid symbol kind for ADRP relocation

Carlo Kok via llvm-dev llvm-dev at lists.llvm.org
Wed Nov 18 05:38:58 PST 2020


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 (C:\p\llvm-project-bin32\RelWithDebInfo\bin\llc.exe+0x1272349)
 #1 0x019bb8fc (C:\p\llvm-project-bin32\RelWithDebInfo\bin\llc.exe+0x170b8fc)

I have no idea where to even start looking, but it seems related to the store.

; ModuleID = '$debug$'
source_filename = "$debug$"
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
target triple = "arm64-apple-macosx11.0.1-elf"


define void @"$$debug_evaluation_helper"(i8* %0) {
BasicBlock3:
  %1 = alloca void (i8*, void (i8*)*, void (i8*, i8*)*)*
  store void (i8*, void (i8*)*, void (i8*, i8*)*)* @"$$__island_debug_invoke", void (i8*, void (i8*)*, void (i8*, i8*)*)** %1
  %2 = load void (i8*, void (i8*)*, void (i8*, i8*)*)*, void (i8*, void (i8*)*, void (i8*, i8*)*)** %1
  unreachable
}
declare void @"$$__island_debug_invoke"(i8* %0, void (i8*)* %1, void (i8*, i8*)* %2) 

attributes #0 = { nounwind }


More information about the llvm-dev mailing list