user rodata section for text-string

This commit is contained in:
Shark
2015-10-19 18:47:27 +02:00
parent 84d258f765
commit f19088fb3e

View File

@@ -13,7 +13,7 @@ _start: ;tell linker entry point
mov al,60 ;system call number (sys_exit) mov al,60 ;system call number (sys_exit)
syscall ;call kernel syscall ;call kernel
section .data section .rodata
msg db 'Hello, world!',0xa ;our string msg db 'Hello, world!',0xa ;our string
len equ $ - msg ;length of our string len equ $ - msg ;length of our string