19 |
; * along with this program ; if not, write to the Free Software |
; * along with this program ; if not, write to the Free Software |
20 |
; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
; * |
; * |
22 |
; * $Id: nasm.inc,v 1.4 2008-12-04 14:41:50 Isibaar Exp $ |
; * $Id: nasm.inc,v 1.7 2009-09-16 17:07:58 Isibaar Exp $ |
23 |
; * |
; * |
24 |
; ***************************************************************************/ |
; ***************************************************************************/ |
25 |
|
|
104 |
%define PTR_TYPE qword |
%define PTR_TYPE qword |
105 |
|
|
106 |
%ifdef __YASM_VERSION_ID__ |
%ifdef __YASM_VERSION_ID__ |
107 |
%define XVID_MOVSX movsxd |
%define XVID_MOVSXD movsxd |
108 |
%else |
%else |
109 |
%define XVID_MOVSX movsx |
%define XVID_MOVSXD movsx |
110 |
%endif |
%endif |
111 |
|
|
112 |
%else |
%else |
154 |
%define PUSH_XMM6_XMM7 |
%define PUSH_XMM6_XMM7 |
155 |
%define POP_XMM6_XMM7 |
%define POP_XMM6_XMM7 |
156 |
|
|
157 |
%define XVID_MOVSX movsx |
%define XVID_MOVSXD movsx |
|
|
|
158 |
%endif |
%endif |
159 |
|
|
160 |
|
|
175 |
%endmacro |
%endmacro |
176 |
|
|
177 |
%macro TEXT 0 |
%macro TEXT 0 |
178 |
|
%ifidn __OUTPUT_FORMAT__,macho |
179 |
|
SECTION .text align=SECTION_ALIGN |
180 |
|
%else |
181 |
SECTION .rotext align=SECTION_ALIGN |
SECTION .rotext align=SECTION_ALIGN |
182 |
|
%endif |
183 |
%endmacro |
%endmacro |
184 |
|
|
185 |
%macro cglobal 1 |
%macro cglobal 1 |
203 |
%endif |
%endif |
204 |
%endif |
%endif |
205 |
%endmacro |
%endmacro |
206 |
|
|
207 |
|
%macro NON_EXEC_STACK 0 |
208 |
|
%ifidn __OUTPUT_FORMAT__,elf |
209 |
|
section .note.GNU-stack noalloc noexec nowrite progbits |
210 |
|
%endif |
211 |
|
%ifidn __OUTPUT_FORMAT__,elf64 |
212 |
|
section .note.GNU-stack noalloc noexec nowrite progbits |
213 |
|
%endif |
214 |
|
%endmacro |