MaskRay added a comment.

> we can NOT guarantee that the relocations get resolved to the intended weak 
> symbol, so we can not ensure the correctness of the relative CounterPtr, so 
> we have to use private linkage for counter and data symbols.

In other binary formats the first weak definition is selected and other weak 
definitions are discarded.
Do you mean that AIX ld doesn't pick the first weak definition?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D110422

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to