Skip to content

Commit fd35bb9

Browse files
author
deadwood
committed
Update argument name to be more descriptive
1 parent c6c4304 commit fd35bb9

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/patchelf.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,7 +1653,7 @@ void ElfFile<ElfFileParamNames>::noDefaultLib()
16531653
}
16541654

16551655
template<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;
17231723
static bool removeRPath = false;
17241724
static bool setRPath = false;
17251725
static bool addRPath = false;
1726-
static bool addDebug = false;
1726+
static bool addDebugTag = false;
17271727
static bool printRPath = false;
17281728
static std::string newRPath;
17291729
static 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]);

src/patchelf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class ElfFile
131131

132132
void noDefaultLib();
133133

134-
void addDebug();
134+
void addDebugTag();
135135

136136
void clearSymbolVersions(const std::set<std::string> & syms);
137137

0 commit comments

Comments
 (0)