[clang] Fix adding support for -X flag in Baremetal toolchain (PR #147804)
Garvit Gupta via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 15 11:15:39 PDT 2025
================
@@ -613,8 +613,8 @@ void baremetal::Linker::ConstructJob(Compilation &C, const JobAction &JA,
return;
}
+ CmdArgs.push_back("-X");
----------------
quic-garvgupt wrote:
I made a few mistakes in the commit message and title. The intent of this PR is to add support for passing the -X flag across all baremetal targets. While this flag has historically been used only for RISC-V, its functionality can be beneficial for ARM and AArch64 targets as well. The primary goal of this PR is to gather feedback on enabling this flag universally for baremetal toolchains, as it can help reduce the size of the .symtab section.
Apologies if this has been brought up or discussed in the past in some other patch or thread!
The removal of extraneous `-X` has been done in this PR https://github.com/llvm/llvm-project/pull/148855
https://github.com/llvm/llvm-project/pull/147804
More information about the cfe-commits
mailing list