Skip to content

Commit 922bf57

Browse files
committed
[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.
1 parent 92a0389 commit 922bf57

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

clang/lib/Driver/ToolChains/Gnu.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -477,11 +477,7 @@ void tools::gnutools::Linker::ConstructJob(Compilation &C, const JobAction &JA,
477477
CmdArgs.push_back("-shared");
478478

479479
if (IsStatic) {
480-
if (Arch == llvm::Triple::arm || Arch == llvm::Triple::armeb ||
481-
Arch == llvm::Triple::thumb || Arch == llvm::Triple::thumbeb)
482-
CmdArgs.push_back("-Bstatic");
483-
else
484-
CmdArgs.push_back("-static");
480+
CmdArgs.push_back("-static");
485481
} else {
486482
if (Args.hasArg(options::OPT_rdynamic))
487483
CmdArgs.push_back("-export-dynamic");

0 commit comments

Comments
 (0)