File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -268,8 +268,6 @@ MemoryBufferRef LazyArchive::getMemberBuffer() {
268
268
}
269
269
270
270
uint8_t Symbol::computeBinding () const {
271
- if (config->relocatable )
272
- return binding;
273
271
if ((visibility != STV_DEFAULT && visibility != STV_PROTECTED) ||
274
272
(versionId == VER_NDX_LOCAL && !isLazy ()))
275
273
return STB_LOCAL;
Original file line number Diff line number Diff line change @@ -1972,7 +1972,8 @@ template <class ELFT> void Writer<ELFT>::finalizeSections() {
1972
1972
for (Symbol *sym : symtab->symbols ()) {
1973
1973
if (!sym->isUsedInRegularObj || !includeInSymtab (*sym))
1974
1974
continue ;
1975
- sym->binding = sym->computeBinding ();
1975
+ if (!config->relocatable )
1976
+ sym->binding = sym->computeBinding ();
1976
1977
if (in.symTab )
1977
1978
in.symTab ->addSymbol (sym);
1978
1979
You can’t perform that action at this time.
0 commit comments