2022-05-19 21:12:48 +03:00
|
|
|
extern bss_begin
|
|
|
|
extern bss_end
|
|
|
|
extern entry
|
|
|
|
|
2023-09-11 14:49:42 +03:00
|
|
|
section .entry progbits alloc exec nowrite align=16
|
2022-05-19 21:12:48 +03:00
|
|
|
|
|
|
|
global _start
|
|
|
|
_start:
|
|
|
|
cld
|
|
|
|
|
|
|
|
; Zero out .bss
|
|
|
|
xor al, al
|
|
|
|
mov edi, bss_begin
|
|
|
|
mov ecx, bss_end
|
|
|
|
sub ecx, bss_begin
|
|
|
|
rep stosb
|
|
|
|
|
|
|
|
jmp entry
|