[libc-commits] [clang] [compiler-rt] [libc] [libunwind] [lld] [lldb] [llvm] Add NXP EZH (SmartDMA) architecture (PR #201498)

Fangrui Song via libc-commits libc-commits at lists.llvm.org
Thu Jun 4 00:15:09 PDT 2026


================
@@ -2073,6 +2073,8 @@ static void setConfigs(Ctx &ctx, opt::InputArgList &args) {
     else
       ctx.arg.sysvHash = ctx.arg.gnuHash = true;
   }
+  if (ctx.arg.emachine == EM_EZH && ctx.arg.discard == DiscardPolicy::Default)
+    ctx.arg.discard = DiscardPolicy::Locals;
----------------
MaskRay wrote:

Should make clang driver pass `--discard-locals` instead of patching the linker

https://github.com/llvm/llvm-project/pull/201498


More information about the libc-commits mailing list