summaryrefslogtreecommitdiffhomepage
path: root/public/tools/ld.dyn/src/CommandLine.cc
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-01-13 05:43:49 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-01-13 05:48:18 +0100
commitfaf73d5258b3c61ea1a84efa6bed543d6bfd5321 (patch)
tree6d77156202d11a378d326b25a82f4b8b41fe0200 /public/tools/ld.dyn/src/CommandLine.cc
parentd5263778065e62a4a20f3af236f6dde7bbb3afc4 (diff)
feat: kernel: API tweaks and new FMT specs for NeKernel.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'public/tools/ld.dyn/src/CommandLine.cc')
-rw-r--r--public/tools/ld.dyn/src/CommandLine.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/public/tools/ld.dyn/src/CommandLine.cc b/public/tools/ld.dyn/src/CommandLine.cc
index 45f707a9..b3774f85 100644
--- a/public/tools/ld.dyn/src/CommandLine.cc
+++ b/public/tools/ld.dyn/src/CommandLine.cc
@@ -8,7 +8,8 @@
/// @brief Library loader.
-#define DYNLIB_FLAG "-dyn"
+#define DYNLIB_FLAG "-e"
+#define DYNLIB_FLAG_ALT "-exec"
SInt32 _NeMain(SInt32 argc, Char* argv[]) {
LIBSYS_UNUSED(argc);
@@ -19,7 +20,7 @@ SInt32 _NeMain(SInt32 argc, Char* argv[]) {
"ld.dyn: © 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license.\n");
for (SInt32 i = 1U; i < argc; ++i) {
- if (MmStrCmp(argv[i], DYNLIB_FLAG) == 0) {
+ if (MmStrCmp(argv[i], DYNLIB_FLAG) == 0 || MmStrCmp(argv[i], DYNLIB_FLAG_ALT) == 0) {
UIntPtr ret = RtlSpawnProcess(argv[i], 0, nullptr, nullptr, 0);
if (0 < ret) {