(1)LinkOnceODRLinkage:
emit .weak for the symbol;
(2) AppendingLinkage of llvm.global_ctors, llvm.global_dtors:
omit emitting anything from these two global arrays until we support -qtwolink similar behavior on AIX.
Differential D75305
[AIX] Handle LinkOnceODRLinkage and AppendingLinkage for static init gloabl arrays Xiangling_L on Feb 27 2020, 2:05 PM. Authored by
Details (1)LinkOnceODRLinkage: emit .weak for the symbol; (2) AppendingLinkage of llvm.global_ctors, llvm.global_dtors:
Diff Detail Event Timeline
Comment Actions Update the func name and the testcase;
Comment Actions LGTM with minor comment.
|
As it stands, users can pass in IR with such linkage. This should be report_fatal_error because this is indeed reachable without being a clear bug elsewhere.
As for the text, it should say something like "There is no mapping that implements AppendingLinkage for XCOFF."