@@ -1852,6 +1852,12 @@ void ElfFile<ElfFileParamNames>::noDefaultLib()
1852
1852
changed = true ;
1853
1853
}
1854
1854
1855
+ template <ElfFileParams>
1856
+ void ElfFile<ElfFileParamNames>::cleanStrTab()
1857
+ {
1858
+
1859
+ }
1860
+
1855
1861
template <ElfFileParams>
1856
1862
void ElfFile<ElfFileParamNames>::addDebugTag()
1857
1863
{
@@ -2140,6 +2146,7 @@ static bool removeRPath = false;
2140
2146
static bool setRPath = false ;
2141
2147
static bool addRPath = false ;
2142
2148
static bool addDebugTag = false ;
2149
+ static bool cleanStrTab = false ;
2143
2150
static bool renameDynamicSymbols = false ;
2144
2151
static bool printRPath = false ;
2145
2152
static std::string newRPath;
@@ -2201,6 +2208,9 @@ static void patchElf2(ElfFile && elfFile, const FileContents & fileContents, con
2201
2208
if (renameDynamicSymbols)
2202
2209
elfFile.renameDynamicSymbols (symbolsToRename);
2203
2210
2211
+ if (cleanStrTab)
2212
+ elfFile.cleanStrTab ();
2213
+
2204
2214
if (elfFile.isChanged ()){
2205
2215
writeFile (fileName, elfFile.fileContents );
2206
2216
} else if (alwaysWrite) {
@@ -2384,6 +2394,9 @@ int mainWrapped(int argc, char * * argv)
2384
2394
else if (arg == " --add-debug-tag" ) {
2385
2395
addDebugTag = true ;
2386
2396
}
2397
+ else if (arg == " --clean-strtab" ) {
2398
+ cleanStrTab = true ;
2399
+ }
2387
2400
else if (arg == " --rename-dynamic-symbols" ) {
2388
2401
renameDynamicSymbols = true ;
2389
2402
if (++i == argc) error (" missing argument" );
0 commit comments