;name: static.asm
;
;build: - release version:
;         nasm -f elf64 static.asm -o static.o
;         ar rcs libstatic.a static.o
;       - debug /development version:
;         nasm -felf64 -Fdwarf static.asm -o static-dev.o
;         ar rcs libstatic-dev.a static-dev.o
;
;description: static library (archivefile) demo

[list -]
    %include "unistd.inc"
[list +]     

bits 64

global writestring

section .rodata

    message:    db  "hello, you are in the static library",10
    .len:       equ $-message
    
section .text

writestring:

    syscall write, stdout, message, message.len
    ret