[PATCH] D105176: [InstrProfiling] Use external weak reference for bias variable

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 2 19:40:27 PDT 2021


MaskRay added a comment.

In D105176#2855238 <https://reviews.llvm.org/D105176#2855238>, @thakis wrote:

> (I believe @MaskRay did a lot of cool work in this general area recently, maybe he knows how to make this work.)

This is the normal problem that ld64 disallows undefined symbols by default, even in dylib mode.

This needs a dynamic lookup symbol, i.e. `-Wl,-U,__llvm_profile_counter_bias`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D105176/new/

https://reviews.llvm.org/D105176



More information about the llvm-commits mailing list