aboutsummaryrefslogtreecommitdiffstats
path: root/elf/hello.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/hello.c')
-rw-r--r--elf/hello.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/elf/hello.c b/elf/hello.c
new file mode 100644
index 00000000..d7b46c04
--- /dev/null
+++ b/elf/hello.c
@@ -0,0 +1,13 @@
+// A simple Hello World ELF module
+
+// TODO: Define some macros that would put the initialization and termination
+// functions in a separate section (suggestion: .init and .fini)
+
+int hello_init() {
+ // Do nothing
+ return 0;
+}
+
+void hello_exit() {
+ // Do nothing
+}