From cb6d0477d6ea65b6364bfbcd872552bec6fbc22a Mon Sep 17 00:00:00 2001 From: Amlal Date: Sun, 23 Feb 2025 08:25:33 +0100 Subject: ADD: Use C++23 on toolchain now, and add 'ld' CLI tool. Signed-off-by: Amlal --- public/tools/ld/src/CommandLine.cc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 public/tools/ld/src/CommandLine.cc (limited to 'public/tools/ld/src/CommandLine.cc') diff --git a/public/tools/ld/src/CommandLine.cc b/public/tools/ld/src/CommandLine.cc new file mode 100644 index 00000000..534fdb4e --- /dev/null +++ b/public/tools/ld/src/CommandLine.cc @@ -0,0 +1,17 @@ +/* + * Created on Thu Oct 17 08:00:42 CEST 2024 + * + * Copyright (c) 2024 Amlal EL Mahrouss + */ + +#include + +/// @brief This program loads a program for NeOS. + +SInt32 main(SInt32 argc, Char* argv[]) +{ + UIntPtr exit_code = RtlSpawnProcess(argv[1], argc - 2, argv + 2, + nullptr, 0); + + return exit_code; +} -- cgit v1.2.3