Skip to content

Commit ca23391

Browse files
committed
Other switches might set changed as true. Use extraStrings size
1 parent 69a7ae5 commit ca23391

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/patchelf.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2134,7 +2134,7 @@ void ElfFile<ElfFileParamNames>::renameDynamicSymbols(const std::unordered_map<s
21342134
}
21352135
}
21362136

2137-
if (changed)
2137+
if (!extraStrings.empty())
21382138
{
21392139
auto newStrTabSize = strTab.size() + extraStrings.size();
21402140
auto& newSec = replaceSection(".dynstr", newStrTabSize);

0 commit comments

Comments
 (0)