--- cbp_3dne.asm 2003/10/28 22:23:03 1.2.2.1 +++ cbp_3dne.asm 2008/11/26 01:04:34 1.8 @@ -19,7 +19,7 @@ ; * along with this program ; if not, write to the Free Software ; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ; * -; * $Id: cbp_3dne.asm,v 1.2.2.1 2003/10/28 22:23:03 edgomez Exp $ +; * $Id: cbp_3dne.asm,v 1.8 2008/11/26 01:04:34 Isibaar dead $ ; * ; ***************************************************************************/ @@ -34,14 +34,26 @@ %macro cglobal 1 %ifdef PREFIX - global _%1 - %define %1 _%1 + %ifdef MARK_FUNCS + global _%1:function %1.endfunc-%1 + %define %1 _%1:function %1.endfunc-%1 + %define ENDFUNC .endfunc + %else + global _%1 + %define %1 _%1 + %define ENDFUNC + %endif %else - global %1 + %ifdef MARK_FUNCS + global %1:function %1.endfunc-%1 + %define ENDFUNC .endfunc + %else + global %1 + %define ENDFUNC + %endif %endif %endmacro - %macro calc_cbp 1 pshufw mm0, [eax], 229 ; =11100101 movq mm1, [eax+8] @@ -113,3 +125,10 @@ adc eax, eax add esp, byte 24 ret +ENDFUNC + + +%ifidn __OUTPUT_FORMAT__,elf +section ".note.GNU-stack" noalloc noexec nowrite progbits +%endif +