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
|
2023-09-28 12:15:33 +03:00
|
|
|
|
|
|
|
section .note.GNU-stack noalloc noexec nowrite progbits
|