Index: lld/trunk/ELF/Config.h =================================================================== --- lld/trunk/ELF/Config.h +++ lld/trunk/ELF/Config.h @@ -118,7 +118,7 @@ bool FatalWarnings; bool GcSections; bool GdbIndex; - bool GnuHash; + bool GnuHash = false; bool HasDynamicList = false; bool HasDynSymTab; bool ICF; @@ -137,7 +137,7 @@ bool SingleRoRx; bool Shared; bool Static = false; - bool SysvHash; + bool SysvHash = false; bool Target1Rel; bool Threads; bool Trace; Index: lld/trunk/ELF/Driver.cpp =================================================================== --- lld/trunk/ELF/Driver.cpp +++ lld/trunk/ELF/Driver.cpp @@ -561,17 +561,6 @@ return SortSectionPolicy::Default; } -static std::pair getHashStyle(opt::InputArgList &Args) { - StringRef S = Args.getLastArgValue(OPT_hash_style, "sysv"); - if (S == "sysv") - return {true, false}; - if (S == "gnu") - return {false, true}; - if (S != "both") - error("unknown -hash-style: " + S); - return {true, true}; -} - // Parse --build-id or --build-id=