Lines Matching refs:Sym
272 Obj.SymbolTable->updateSymbols([&](Symbol &Sym) { in handleArgs() argument
273 if (!Sym.isCommon() && in handleArgs()
275 (Sym.Visibility == STV_HIDDEN || Sym.Visibility == STV_INTERNAL)) || in handleArgs()
276 is_contained(Config.SymbolsToLocalize, Sym.Name))) in handleArgs()
277 Sym.Binding = STB_LOCAL; in handleArgs()
290 !is_contained(Config.SymbolsToKeepGlobal, Sym.Name) && in handleArgs()
291 Sym.getShndx() != SHN_UNDEF) in handleArgs()
292 Sym.Binding = STB_LOCAL; in handleArgs()
294 if (is_contained(Config.SymbolsToGlobalize, Sym.Name) && in handleArgs()
295 Sym.getShndx() != SHN_UNDEF) in handleArgs()
296 Sym.Binding = STB_GLOBAL; in handleArgs()
298 if (is_contained(Config.SymbolsToWeaken, Sym.Name) && in handleArgs()
299 Sym.Binding == STB_GLOBAL) in handleArgs()
300 Sym.Binding = STB_WEAK; in handleArgs()
302 if (Config.Weaken && Sym.Binding == STB_GLOBAL && in handleArgs()
303 Sym.getShndx() != SHN_UNDEF) in handleArgs()
304 Sym.Binding = STB_WEAK; in handleArgs()
306 const auto I = Config.SymbolsToRename.find(Sym.Name); in handleArgs()
308 Sym.Name = I->getValue(); in handleArgs()
310 if (!Config.SymbolsPrefix.empty() && Sym.Type != STT_SECTION) in handleArgs()
311 Sym.Name = (Config.SymbolsPrefix + Sym.Name).str(); in handleArgs()
322 Obj.removeSymbols([&](const Symbol &Sym) { in handleArgs() argument
323 if (is_contained(Config.SymbolsToKeep, Sym.Name) || in handleArgs()
324 (Config.KeepFileSymbols && Sym.Type == STT_FILE)) in handleArgs()
327 if (Config.DiscardAll && Sym.Binding == STB_LOCAL && in handleArgs()
328 Sym.getShndx() != SHN_UNDEF && Sym.Type != STT_FILE && in handleArgs()
329 Sym.Type != STT_SECTION) in handleArgs()
335 if (is_contained(Config.SymbolsToRemove, Sym.Name)) in handleArgs()
338 if (Config.StripUnneeded && !Sym.Referenced && in handleArgs()
339 (Sym.Binding == STB_LOCAL || Sym.getShndx() == SHN_UNDEF) && in handleArgs()
340 Sym.Type != STT_FILE && Sym.Type != STT_SECTION) in handleArgs()