nasm/travis/test/nasmformat.asm
Cyrill Gorcunov c51934e40f test: nasm-t -- Add nasmformat
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2018-11-11 21:43:46 +03:00

18 lines
525 B
NASM

%ifidn __OUTPUT_FORMAT__, bin
msg_format: db 'This is binary format file'
%elifidn __OUTPUT_FORMAT__, elf32
section .rodata
msg_format: db 'This is elf32 format file'
%elifidn __OUTPUT_FORMAT__, elf64
section .rodata
msg_format: db 'This is elf64 format file'
%elifidn __OUTPUT_FORMAT__, macho32
section .rodata
msg_format: db 'This is macho32 format file'
%elifidn __OUTPUT_FORMAT__, macho64
section .rodata
msg_format: db 'This is macho64 format file'
%else
msg_format: db 'This is some other format file'
%endif