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.7 2009-09-16 17:07:58 Isibaar Exp $ |
; * $Id: nasm.inc,v 1.9 2011-02-25 12:38:37 Isibaar Exp $ |
23 |
; * |
; * |
24 |
; ***************************************************************************/ |
; ***************************************************************************/ |
25 |
|
|
175 |
%endmacro |
%endmacro |
176 |
|
|
177 |
%macro TEXT 0 |
%macro TEXT 0 |
|
%ifidn __OUTPUT_FORMAT__,macho |
|
178 |
SECTION .text align=SECTION_ALIGN |
SECTION .text align=SECTION_ALIGN |
|
%else |
|
|
SECTION .rotext align=SECTION_ALIGN |
|
|
%endif |
|
179 |
%endmacro |
%endmacro |
180 |
|
|
181 |
%macro cglobal 1 |
%macro cglobal 1 |
204 |
%ifidn __OUTPUT_FORMAT__,elf |
%ifidn __OUTPUT_FORMAT__,elf |
205 |
section .note.GNU-stack noalloc noexec nowrite progbits |
section .note.GNU-stack noalloc noexec nowrite progbits |
206 |
%endif |
%endif |
207 |
|
%ifidn __OUTPUT_FORMAT__,elf32 |
208 |
|
section .note.GNU-stack noalloc noexec nowrite progbits |
209 |
|
%endif |
210 |
%ifidn __OUTPUT_FORMAT__,elf64 |
%ifidn __OUTPUT_FORMAT__,elf64 |
211 |
section .note.GNU-stack noalloc noexec nowrite progbits |
section .note.GNU-stack noalloc noexec nowrite progbits |
212 |
%endif |
%endif |