2006-06-25 22:58:03 +02:00
|
|
|
|
|
|
|
; set section attributes
|
2007-05-17 05:37:49 +02:00
|
|
|
; section .data data align=32 use32
|
|
|
|
; section .bss bss align=16 use32
|
|
|
|
; section .text code align=64 use32
|
2006-06-25 22:58:03 +02:00
|
|
|
; activate .text (needs to be separate because __SECT__ will otherwise
|
|
|
|
; complain that the above definition is redeclaring attributes)
|
|
|
|
section .text
|
|
|
|
|
|
|
|
; Usage:
|
|
|
|
; use sym(ia32_cap) instead of _ia32_cap - on relevant platforms, sym() will add
|
|
|
|
; the underlines automagically, on others it won't
|
|
|
|
%ifdef DONT_USE_UNDERLINE
|
|
|
|
%define sym(a) a
|
|
|
|
%else
|
|
|
|
%define sym(a) _ %+ a
|
|
|
|
%endif
|