3 ms·
You have to add some extra assembly before main if you don't use the C runtime. You have to write _start, the actual entry point that CRT usually takes. https:/
by fsmv 2y ago
You have to add some extra assembly before main if you don't use the C runtime. You have to write _start, the actual entry point that CRT usually takes. https://github.com/fsmv/dfre/blob/master/code/linux32_start.S https://github.com/fsmv/dfre/blob/master/code/linux32_start....
This is for -nostdlib not -ffreestanding
- sp1rit 2y agoYou can usually with not having the initial part. As long as you do call the exit syscall, it should work.