%ifidn __YASM_OBJFMT__ doesnt work ?
Vikas Kumar
walburn at gmail.com
Thu Dec 15 20:06:12 PST 2005
This works for me Mike.
I copied your exact test.asm and did exactly what u have done "yasm -f
elf -e test.asm" and it worked for me. Please try with the latest
version of yasm. I am using revision 1324.
Here is a sample output:
>>$ cat test.asm
%ifidn __YASM_OBJFMT__,elf
elf
%endif
%ifidn __YASM_OBJFMT__,elf32
elf32
%endif
%ifidn __YASM_OBJFMT__,elf64
elf64
%endif
>>$ yasm -f elf -e test.asm
%line 2+1 test.asm
elf
>>$ yasm -f elf32 -e test.asm
%line 5+1 test.asm
elf32
>>$ yasm -f elf64 -e test.asm
%line 8+1 test.asm
elf64
>>$
On 12/15/05, Mike Frysinger <vapier at gentoo.org> wrote:
> am i doing something wrong here ?
> $ cat test.asm
> %ifidn __YASM_OBJFMT__,elf
> elf
> %endif
> %ifidn __YASM_OBJFMT__,elf32
> elf32
> %endif
> %ifidn __YASM_OBJFMT__,elf64
> elf64
> %endif
>
> $ yasm -f elf -e test.asm
> <nothing!>
>
> similar syntax has always worked fine for me in nasm:
> %ifidn __OUTPUT_FORMAT__,elf
> <stuff>
> %endif
> -mike
> _______________________________________________
> yasm-devel mailing list
> yasm-devel at tortall.net
> http://cvs.tortall.net/mailman/listinfo/yasm-devel
>
More information about the yasm-devel
mailing list