mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-18 03:37:31 +00:00
The "linker_private_weak*" linkages should set the LTO_SYMBOL_DEFINITION_WEAK
during LTO. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114850 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d1e1703c39
commit
563ef5ec91
@ -325,7 +325,9 @@ void LTOModule::addDefinedSymbol(GlobalValue *def, Mangler &mangler,
|
||||
}
|
||||
|
||||
// set definition part
|
||||
if (def->hasWeakLinkage() || def->hasLinkOnceLinkage()) {
|
||||
if (def->hasWeakLinkage() || def->hasLinkOnceLinkage() ||
|
||||
def->hasLinkerPrivateWeakLinkage() ||
|
||||
def->hasLinkerPrivateWeakDefAutoLinkage()) {
|
||||
attr |= LTO_SYMBOL_DEFINITION_WEAK;
|
||||
}
|
||||
else if (def->hasCommonLinkage()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user