You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The multiple definition to avoid the duplicate definition only works on ELF and MachO due to the weak linking semantics. This does not work for PE/COFF binaries. We should always emit the definitions as `weak_odr` and declarations as `external` so that the symbols can always be COMDATed. The `weak_odr` linkage is needed (as opposed to `linkonce_odr`) to ensure that the symbol is emitted even when unreferenced.
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: d5c419b59acc2eff178a21a7ddfe9fa7
Parent-Task:
Issue Description:
The multiple definition to avoid the duplicate definition only works on ELF and MachO due to the weak linking semantics. This does not work for PE/COFF binaries. We should always emit the definitions as `weak_odr` and declarations as `external` so that the symbols can always be COMDATed. The `weak_odr` linkage is needed (as opposed to `linkonce_odr`) to ensure that the symbol is emitted even when unreferenced.
The text was updated successfully, but these errors were encountered: