动态链接库+修复神秘光标问题

This commit is contained in:
2026-04-18 13:52:36 +08:00
parent 8e968af551
commit 6a93335e53
12 changed files with 642 additions and 11 deletions

View File

@@ -0,0 +1,24 @@
#include <stdio.h>
typedef unsigned long long u64;
u64 cleonos_libdemo_add(u64 left, u64 right) {
return left + right;
}
u64 cleonos_libdemo_mul(u64 left, u64 right) {
return left * right;
}
u64 cleonos_libdemo_hello(void) {
(void)puts("[libdemo] hello from libdemo.elf");
return 0ULL;
}
int cleonos_app_main(int argc, char **argv, char **envp) {
(void)argc;
(void)argv;
(void)envp;
(void)puts("[libdemo] dynamic library image ready");
return 0;
}