@@ -1653,7 +1653,7 @@ void ElfFile<ElfFileParamNames>::noDefaultLib()
16531653}
16541654
16551655template <ElfFileParams>
1656- void ElfFile<ElfFileParamNames>::addDebug ()
1656+ void ElfFile<ElfFileParamNames>::addDebugTag ()
16571657{
16581658 auto shdrDynamic = findSectionHeader (" .dynamic" );
16591659
@@ -1723,7 +1723,7 @@ static std::vector<std::string> allowedRpathPrefixes;
17231723static bool removeRPath = false ;
17241724static bool setRPath = false ;
17251725static bool addRPath = false ;
1726- static bool addDebug = false ;
1726+ static bool addDebugTag = false ;
17271727static bool printRPath = false ;
17281728static std::string newRPath;
17291729static std::set<std::string> neededLibsToRemove;
@@ -1770,8 +1770,8 @@ static void patchElf2(ElfFile && elfFile, const FileContents & fileContents, con
17701770 if (noDefaultLib)
17711771 elfFile.noDefaultLib ();
17721772
1773- if (addDebug )
1774- elfFile.addDebug ();
1773+ if (addDebugTag )
1774+ elfFile.addDebugTag ();
17751775
17761776 if (elfFile.isChanged ()){
17771777 writeFile (fileName, elfFile.fileContents );
@@ -1829,7 +1829,7 @@ void showHelp(const std::string & progName)
18291829 [--print-needed]\n \
18301830 [--no-default-lib]\n \
18311831 [--clear-symbol-version SYMBOL]\n \
1832- [--add-debug]\n \
1832+ [--add-debug-tag ]\n \
18331833 [--output FILE]\n \
18341834 [--debug]\n \
18351835 [--version]\n \
@@ -1938,8 +1938,8 @@ int mainWrapped(int argc, char * * argv)
19381938 else if (arg == " --no-default-lib" ) {
19391939 noDefaultLib = true ;
19401940 }
1941- else if (arg == " --add-debug" ) {
1942- addDebug = true ;
1941+ else if (arg == " --add-debug-tag " ) {
1942+ addDebugTag = true ;
19431943 }
19441944 else if (arg == " --help" || arg == " -h" ) {
19451945 showHelp (argv[0 ]);
0 commit comments