"Fossies" - the Fresh Open Source Software Archive

Member "fasm/examples/elfexe/dynamic/hello.asm" (9 Feb 2020, 282 Bytes) of package /linux/misc/fasm-1.73.22.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Generic Assembler source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 
    2 format ELF executable 3
    3 entry start
    4 
    5 include 'import32.inc'
    6 include 'proc32.inc'
    7 
    8 interpreter '/lib/ld-linux.so.2'
    9 needed 'libc.so.6'
   10 import printf,exit
   11 
   12 segment readable executable
   13 
   14 start:
   15     cinvoke printf,msg
   16     cinvoke exit
   17 
   18 segment readable writeable
   19 
   20 msg db 'Hello world!',0xA,0