diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-27 12:48:21 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-27 12:48:21 +0100 |
commit | 23bb276fcdd6cc3b57e7fc0eae2a614a798cfddf (patch) | |
tree | 5dd690844111811857fa21a1511fde010358c9f3 /LibC/crti.S | |
parent | f1a2cb0882bf192ecffa1b12e997648cdd367a07 (diff) | |
download | serenity-23bb276fcdd6cc3b57e7fc0eae2a614a798cfddf.zip |
LibC: Run constructors on process startup.
Cooperate with the compiler to generate and execute the _init_array list
of constructor functions on userspace program statup. This took two days
to get working, my goodness. :^)
Diffstat (limited to 'LibC/crti.S')
-rw-r--r-- | LibC/crti.S | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/LibC/crti.S b/LibC/crti.S new file mode 100644 index 0000000000..a67c77c71c --- /dev/null +++ b/LibC/crti.S @@ -0,0 +1,9 @@ +.global _init +.section .init +_init: + push %ebp + +.global _fini +.section .fini +_fini: + push %ebp |