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.3 2008-12-01 14:45:45 Isibaar Exp $ |
; * $Id: nasm.inc,v 1.9 2011-02-25 12:38:37 Isibaar Exp $ |
23 |
; * |
; * |
24 |
; ***************************************************************************/ |
; ***************************************************************************/ |
25 |
|
|
103 |
%define PTR_SIZE 8 |
%define PTR_SIZE 8 |
104 |
%define PTR_TYPE qword |
%define PTR_TYPE qword |
105 |
|
|
106 |
|
%ifdef __YASM_VERSION_ID__ |
107 |
|
%define XVID_MOVSXD movsxd |
108 |
|
%else |
109 |
|
%define XVID_MOVSXD movsx |
110 |
|
%endif |
111 |
|
|
112 |
%else |
%else |
113 |
|
|
154 |
%define PUSH_XMM6_XMM7 |
%define PUSH_XMM6_XMM7 |
155 |
%define POP_XMM6_XMM7 |
%define POP_XMM6_XMM7 |
156 |
|
|
157 |
|
%define XVID_MOVSXD movsx |
158 |
%endif |
%endif |
159 |
|
|
160 |
|
|
174 |
%endif |
%endif |
175 |
%endmacro |
%endmacro |
176 |
|
|
177 |
|
%macro TEXT 0 |
178 |
|
%ifidn __OUTPUT_FORMAT__,macho32 |
179 |
|
SECTION .text align=SECTION_ALIGN |
180 |
|
%else |
181 |
|
%ifidn __OUTPUT_FORMAT__,macho64 |
182 |
|
SECTION .text align=SECTION_ALIGN |
183 |
|
%else |
184 |
|
SECTION .rotext align=SECTION_ALIGN |
185 |
|
%endif |
186 |
|
%endif |
187 |
|
%endmacro |
188 |
|
|
189 |
%macro cglobal 1 |
%macro cglobal 1 |
190 |
%ifdef PREFIX |
%ifdef PREFIX |
191 |
%ifdef MARK_FUNCS |
%ifdef MARK_FUNCS |
207 |
%endif |
%endif |
208 |
%endif |
%endif |
209 |
%endmacro |
%endmacro |
210 |
|
|
211 |
|
%macro NON_EXEC_STACK 0 |
212 |
|
%ifidn __OUTPUT_FORMAT__,elf |
213 |
|
section .note.GNU-stack noalloc noexec nowrite progbits |
214 |
|
%endif |
215 |
|
%ifidn __OUTPUT_FORMAT__,elf32 |
216 |
|
section .note.GNU-stack noalloc noexec nowrite progbits |
217 |
|
%endif |
218 |
|
%ifidn __OUTPUT_FORMAT__,elf64 |
219 |
|
section .note.GNU-stack noalloc noexec nowrite progbits |
220 |
|
%endif |
221 |
|
%endmacro |