forked from OSchip/llvm-project
[ELF] Remove redundant !isPreemptible in Symbol::computeBinding()
!isPreemptible was added in r343668 to fix PR39104: symbols redefined by replaceWithDefined() might be incorrectly considered STB_LOCAL if a version script specified `local: *;`. After r367869 (`config->defaultSymbolVersion` was removed), we will assign VER_NDX_LOCAL to only regular Defined and CommonSymbol, not Defined created by replaceWithDefined() (because scanVersionScript() is called before scanRelocations()). The !isPreemptible is thus redundant and can be deleted. llvm-svn: 368535
This commit is contained in:
parent
e812bf5530
commit
635eda8bb0
|
@ -278,7 +278,7 @@ uint8_t Symbol::computeBinding() const {
|
|||
return binding;
|
||||
if (visibility != STV_DEFAULT && visibility != STV_PROTECTED)
|
||||
return STB_LOCAL;
|
||||
if (versionId == VER_NDX_LOCAL && isDefined() && !isPreemptible)
|
||||
if (versionId == VER_NDX_LOCAL && isDefined())
|
||||
return STB_LOCAL;
|
||||
if (!config->gnuUnique && binding == STB_GNU_UNIQUE)
|
||||
return STB_GLOBAL;
|
||||
|
|
Loading…
Reference in New Issue