6 #ifndef XTF_ASM_MACROS_H 7 #define XTF_ASM_MACROS_H 19 #define GLOBAL(name) \ 42 #define ENDFUNC(name) \ 43 .type name, STT_FUNC; \ 52 #define DECLSTR(name, val) \ 53 .pushsection .rodata.str1, "aMS", @progbits, 1; \ 55 .type name, STT_OBJECT; \ 64 #define ELFNOTE(name, type, desc) \ 65 .pushsection .note.name, "a", @note ; \ 78 #define ELFNOTE(name, type, desc) \ 79 asm (".pushsection .note, \"a\", @note;" \ 83 ".long " STR(type) ";" \ 84 "1: .asciz \"" #name "\";" \ Primatives for number manipulation.
Macros for use in x86 assembly files.