"Fossies" - the Fresh Open Source Software Archive

Member "fasm/examples/elfexe/dynamic/hello64.asm" (21 Feb 2022, 296 Bytes) of package /linux/misc/fasm-1.73.30.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 ELF64 executable 3
    3 entry start
    4 
    5 include 'import64.inc'
    6 
    7 interpreter '/lib64/ld-linux-x86-64.so.2'
    8 needed 'libc.so.6'
    9 import printf,exit
   10 
   11 segment readable executable
   12 
   13 start:
   14 
   15     lea rdi,[msg]
   16     xor eax,eax
   17     call    [printf]
   18 
   19     call    [exit]
   20 
   21 segment readable writeable
   22 
   23 msg db 'Hello world!',0xA,0