diff options
| author | Aleksa Vučković <aleksav013@gmail.com> | 2022-01-21 21:44:28 +0100 |
|---|---|---|
| committer | Aleksa Vučković <aleksav013@gmail.com> | 2022-01-21 23:24:55 +0100 |
| commit | a914c37365967afaf3148293a857c36af6f94ecb (patch) | |
| tree | b7086b0b0b6e4bf427210fcfd31c7745920a73a5 /src/crt/crti.s | |
| parent | ed84017353c6fc9421b223ff6ec62f8d881d8098 (diff) | |
Separating assembly, moving #defines to .h & cleaning Makefile
Diffstat (limited to 'src/crt/crti.s')
| -rw-r--r-- | src/crt/crti.s | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/crt/crti.s b/src/crt/crti.s new file mode 100644 index 0000000..5894e2d --- /dev/null +++ b/src/crt/crti.s @@ -0,0 +1,16 @@ +/* x86 crti.s */ +.section .init +.global _init +.type _init, @function +_init: + push %ebp + movl %esp, %ebp + /* gcc will nicely put the contents of crtbegin.o's .init section here. */ + +.section .fini +.global _fini +.type _fini, @function +_fini: + push %ebp + movl %esp, %ebp + /* gcc will nicely put the contents of crtbegin.o's .fini section here. */ |
