--- trunk/xvidcore/src/image/x86_asm/postprocessing_mmx.asm 2004/04/01 11:11:28 1397 +++ trunk/xvidcore/src/image/x86_asm/postprocessing_mmx.asm 2008/08/19 09:06:48 1790 @@ -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: postprocessing_mmx.asm,v 1.1 2004-04-01 11:11:28 suxen_drol Exp $ +; * $Id: postprocessing_mmx.asm,v 1.5 2008-08-19 09:06:48 Isibaar Exp $ ; * ; *************************************************************************/ @@ -27,10 +27,19 @@ %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 + %else + global _%1 + %define %1 _%1 + %endif %else - global %1 + %ifdef MARK_FUNCS + global %1:function %1.endfunc-%1 + %else + global %1 + %endif %endif %endmacro @@ -39,9 +48,9 @@ ;=========================================================================== %ifdef FORMAT_COFF -SECTION .rodata data +SECTION .rodata %else -SECTION .rodata data align=16 +SECTION .rodata align=16 %endif mmx_0x80: @@ -113,4 +122,10 @@ pop esi ret +.endfunc ;////////////////////////////////////////////////////////////////////// + +%ifidn __OUTPUT_FORMAT__,elf +section ".note.GNU-stack" noalloc noexec nowrite progbits +%endif +