Skip to content

Commit 39063e7

Browse files
committed
Fix extraneous addition of -X flag in baremetal toolchain
Commit 597ee88 moved the -X flag to a new position in the baremetal toolchain's linker job, but unintentionally left the original instance in place. This patch removes the redundant flag, ensuring -X is passed only once. Change-Id: I4318e6eba52e4664caed1c21a276210346b65405
1 parent 5004c59 commit 39063e7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

clang/lib/Driver/ToolChains/BareMetal.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -694,9 +694,6 @@ void baremetal::Linker::ConstructJob(Compilation &C, const JobAction &JA,
694694
NeedCRTs)
695695
CmdArgs.push_back(Args.MakeArgString(TC.GetFilePath(CRTEnd)));
696696

697-
if (TC.getTriple().isRISCV())
698-
CmdArgs.push_back("-X");
699-
700697
// The R_ARM_TARGET2 relocation must be treated as R_ARM_REL32 on arm*-*-elf
701698
// and arm*-*-eabi (the default is R_ARM_GOT_PREL, used on arm*-*-linux and
702699
// arm*-*-*bsd).

0 commit comments

Comments
 (0)