@@ -1653,7 +1653,7 @@ void ElfFile<ElfFileParamNames>::noDefaultLib()
1653
1653
}
1654
1654
1655
1655
template <ElfFileParams>
1656
- void ElfFile<ElfFileParamNames>::addDebug ()
1656
+ void ElfFile<ElfFileParamNames>::addDebugTag ()
1657
1657
{
1658
1658
auto shdrDynamic = findSectionHeader (" .dynamic" );
1659
1659
@@ -1723,7 +1723,7 @@ static std::vector<std::string> allowedRpathPrefixes;
1723
1723
static bool removeRPath = false ;
1724
1724
static bool setRPath = false ;
1725
1725
static bool addRPath = false ;
1726
- static bool addDebug = false ;
1726
+ static bool addDebugTag = false ;
1727
1727
static bool printRPath = false ;
1728
1728
static std::string newRPath;
1729
1729
static std::set<std::string> neededLibsToRemove;
@@ -1770,8 +1770,8 @@ static void patchElf2(ElfFile && elfFile, const FileContents & fileContents, con
1770
1770
if (noDefaultLib)
1771
1771
elfFile.noDefaultLib ();
1772
1772
1773
- if (addDebug )
1774
- elfFile.addDebug ();
1773
+ if (addDebugTag )
1774
+ elfFile.addDebugTag ();
1775
1775
1776
1776
if (elfFile.isChanged ()){
1777
1777
writeFile (fileName, elfFile.fileContents );
@@ -1829,7 +1829,7 @@ void showHelp(const std::string & progName)
1829
1829
[--print-needed]\n \
1830
1830
[--no-default-lib]\n \
1831
1831
[--clear-symbol-version SYMBOL]\n \
1832
- [--add-debug]\n \
1832
+ [--add-debug-tag ]\n \
1833
1833
[--output FILE]\n \
1834
1834
[--debug]\n \
1835
1835
[--version]\n \
@@ -1938,8 +1938,8 @@ int mainWrapped(int argc, char * * argv)
1938
1938
else if (arg == " --no-default-lib" ) {
1939
1939
noDefaultLib = true ;
1940
1940
}
1941
- else if (arg == " --add-debug" ) {
1942
- addDebug = true ;
1941
+ else if (arg == " --add-debug-tag " ) {
1942
+ addDebugTag = true ;
1943
1943
}
1944
1944
else if (arg == " --help" || arg == " -h" ) {
1945
1945
showHelp (argv[0 ]);
0 commit comments