forked from OSchip/llvm-project
[Driver][Gnu] Delete unneeded -Bstatic dispatch for arm/thumb
Historically -static and -Bstatic are synonym. gold made the semantics of -static slightly stronger but that does not matter.
This commit is contained in:
parent
92a0389b04
commit
922bf57fc8
|
@ -477,11 +477,7 @@ void tools::gnutools::Linker::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
CmdArgs.push_back("-shared");
|
||||
|
||||
if (IsStatic) {
|
||||
if (Arch == llvm::Triple::arm || Arch == llvm::Triple::armeb ||
|
||||
Arch == llvm::Triple::thumb || Arch == llvm::Triple::thumbeb)
|
||||
CmdArgs.push_back("-Bstatic");
|
||||
else
|
||||
CmdArgs.push_back("-static");
|
||||
CmdArgs.push_back("-static");
|
||||
} else {
|
||||
if (Args.hasArg(options::OPT_rdynamic))
|
||||
CmdArgs.push_back("-export-dynamic");
|
||||
|
|
Loading…
Reference in New Issue