[llvm-branch-commits] [clang] [Driver] Add support for crtbegin.o, crtend.o and libgloss lib to BareMetal toolchain object (PR #121830)
Garvit Gupta via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Mar 24 12:01:53 PDT 2025
================
@@ -565,26 +637,16 @@ void baremetal::Linker::ConstructJob(Compilation &C, const JobAction &JA,
}
if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
+ CmdArgs.push_back("--start-group");
AddRunTimeLibs(TC, D, CmdArgs, Args);
-
CmdArgs.push_back("-lc");
+ if (TC.isUsingLD())
+ CmdArgs.push_back("-lgloss");
----------------
quic-garvgupt wrote:
Fixed
https://github.com/llvm/llvm-project/pull/121830
More information about the llvm-branch-commits
mailing list