3 ms·
Below is a sample "1.asm" source file which in one expt yields a 2.2K static binary. "main" has been renamed to "xyz". format ELF section '.text' exec
by textmode 8y ago
Below is a sample "1.asm" source file which in one expt yields a 2.2K static binary.
"main" has been renamed to "xyz".
format ELF
section '.text' executable
public xyz
extrn _exit
extrn write
xyz:
mov eax,len00
push eax
push char00
mov eax,1
push eax
call write
call _exit
section '.data' writeable
char00 db "21 symbols", 0xA
len00 = $ - char00
- textmode 8y ago(1.3K stripped)