summaryrefslogtreecommitdiffhomepage
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/tools/ld/.keep0
-rw-r--r--public/tools/ld/dist/.keep0
-rw-r--r--public/tools/ld/make_app.json12
-rw-r--r--public/tools/ld/src/CommandLine.cc17
4 files changed, 29 insertions, 0 deletions
diff --git a/public/tools/ld/.keep b/public/tools/ld/.keep
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/public/tools/ld/.keep
diff --git a/public/tools/ld/dist/.keep b/public/tools/ld/dist/.keep
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/public/tools/ld/dist/.keep
diff --git a/public/tools/ld/make_app.json b/public/tools/ld/make_app.json
new file mode 100644
index 00000000..f423df30
--- /dev/null
+++ b/public/tools/ld/make_app.json
@@ -0,0 +1,12 @@
+{
+ "compiler_path": "g++",
+ "compiler_std": "c++23",
+ "headers_path": ["./"],
+ "sources_path": ["src/CommandLine.cc"],
+ "output_name": "./dist/ld",
+ "cpp_macros": [
+ "kLDVersion=0x0100",
+ "kLDVersionHighest=0x0100",
+ "kLDVersionLowest=0x0100"
+ ]
+}
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 <LibSCI/SCI.h>
+
+/// @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;
+}