[PATCH] D145208: [COFF] Add MC support for emitting IMAGE_WEAK_EXTERN_ANTI_DEPENDENCY symbols
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 13 09:09:00 PDT 2023
aeubanks added a comment.
this causes the following to crash
$ cat /tmp/a.ll
target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc19.16.0"
@"__profc_?__libcpp_verbose_abort at Cr@std@@YAXPEBDZZ" = external global [1 x i64]
@"__profd_?__libcpp_verbose_abort at Cr@std@@YAXPEBDZZ" = weak global { i64, i64, i64, ptr, ptr, i32, [2 x i16] } { i64 -1867311221809715712, i64 742261418966908927, i64 sub (i64 ptrtoint (ptr @"__profc_?__libcpp_verbose_abort at Cr@std@@YAXPEBDZZ" to i64), i64 ptrtoint (ptr @"__profd_?__libcpp_verbose_abort at Cr@std@@YAXPEBDZZ" to i64)), ptr @"?__libcpp_verbose_abort at Cr@std@@YAXPEBDZZ.local", ptr null, i32 1, [2 x i16] zeroinitializer }
@"?__libcpp_verbose_abort at Cr@std@@YAXPEBDZZ.local" = private alias void (ptr, ...), ptr @"?__libcpp_verbose_abort at Cr@std@@YAXPEBDZZ"
define weak void @"?__libcpp_verbose_abort at Cr@std@@YAXPEBDZZ"(...) {
entry:
unreachable
}
$ clang-cl -cc1 -triple x86_64-pc-windows-msvc19.16.0 -faddrsig -o /dev/null /tmp/a.ll -emit-obj
clang-cl: ../../llvm/include/llvm/MC/MCSymbol.h:271: MCSection &llvm::MCSymbol::getSection() const: Assertion `isInSection() && "Invalid accessor!"' failed.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145208/new/
https://reviews.llvm.org/D145208
More information about the llvm-commits
mailing list