macho and underscores on global function names

Mark Charney markcharney at gmail.com
Fri Mar 16 20:58:00 PDT 2007


That helped. I opted for this variant:

%ifdef UNDERSCORE
%define NAME(x) _ %+ x
%else
%define NAME(x) x
%endif

since it also allows me to cover both macho32, macho64 and cygwin-gcc
behavior.  I can control the "-D UNDERSCORE"  flag on the command line from
my build system.

Thanks!
...Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cvs.tortall.net/pipermail/yasm-devel/attachments/20070316/e9e0ebc9/attachment.html 


More information about the yasm-devel mailing list