mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-12-21 09:19:31 +08:00
c51934e40f
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
18 lines
525 B
NASM
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
|