diff --git a/lld/ELF/Config.h b/lld/ELF/Config.h --- a/lld/ELF/Config.h +++ b/lld/ELF/Config.h @@ -253,6 +253,7 @@ UnresolvedPolicy unresolvedSymbols; UnresolvedPolicy unresolvedSymbolsInShlib; Target2Policy target2; + bool Power10Stub; ARMVFPArgKind armVFPArgs = ARMVFPArgKind::Default; BuildIdKind buildId = BuildIdKind::None; SeparateSegmentKind zSeparate; diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp --- a/lld/ELF/Driver.cpp +++ b/lld/ELF/Driver.cpp @@ -761,6 +761,20 @@ return OrphanHandlingPolicy::Place; } +// Parses --power10-stubs= flags, to disable or enable Power 10 +// instructions in stubs. +static bool getP10StubOpt(opt::InputArgList &args) { + + if (args.getLastArgValue(OPT_power10_stubs_eq)== "no") + return false; + + if (!args.hasArg(OPT_power10_stubs_eq) && + args.hasArg(OPT_no_power10_stubs)) + return false; + + return true; +} + // Parse --build-id or --build-id=