diff options
| author | Nic Gaffney <gaffney_nic@protonmail.com> | 2023-11-06 02:00:07 -0600 |
|---|---|---|
| committer | Nic Gaffney <gaffney_nic@protonmail.com> | 2023-11-06 02:00:07 -0600 |
| commit | e14a65df735ce1b00533c73533ce91f8e591ea68 (patch) | |
| tree | 6105dc57bbbdd88b6c6b1cec5da87e930cdd9dc8 /src/header | |
| parent | 036398ab051f2df5b70303e03f4f6506d36cb6eb (diff) | |
| download | gftos-e14a65df735ce1b00533c73533ce91f8e591ea68.tar.gz | |
global constructors
Diffstat (limited to 'src/header')
| -rw-r--r-- | src/header/crti.s | 12 | ||||
| -rw-r--r-- | src/header/crtn.s | 7 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/header/crti.s b/src/header/crti.s new file mode 100644 index 0000000..91e86fa --- /dev/null +++ b/src/header/crti.s @@ -0,0 +1,12 @@ +.section .init +.global _init +.type _init @function +_init: + push %ebp + movl %esp, %ebp + +.section .fini +.global _fini +_fini: + push %ebp + movl %esp, %ebp diff --git a/src/header/crtn.s b/src/header/crtn.s new file mode 100644 index 0000000..4874122 --- /dev/null +++ b/src/header/crtn.s @@ -0,0 +1,7 @@ +.section .init + popl %ebp + ret + +.section .fini + popl %ebp + ret |
