]> granicus.if.org Git - yasm/commitdiff
Add macros for ELF's type, size, and weak directives.
authorPeter Johnson <peter@tortall.net>
Tue, 1 Nov 2005 04:36:44 +0000 (04:36 -0000)
committerPeter Johnson <peter@tortall.net>
Tue, 1 Nov 2005 04:36:44 +0000 (04:36 -0000)
svn path=/trunk/yasm/; revision=1301

modules/preprocs/nasm/standard.mac

index 39dfd5e7d349348c4a6ddc4c3d5d6d10ec371f87..5afcfaf188946f861389971b386d28cefcbd187f 100644 (file)
@@ -125,3 +125,39 @@ __SECT__
 %endmacro
 %endif
 
+%ifidn __YASM_OBJFMT__,elf
+%imacro type 1+.nolist
+[type %1]
+%endmacro
+%imacro size 1+.nolist
+[size %1]
+%endmacro
+%imacro weak 1+.nolist
+[weak %1]
+%endmacro
+%endif
+
+%ifidn __YASM_OBJFMT__,elf32
+%imacro type 1+.nolist
+[type %1]
+%endmacro
+%imacro size 1+.nolist
+[size %1]
+%endmacro
+%imacro weak 1+.nolist
+[weak %1]
+%endmacro
+%endif
+
+%ifidn __YASM_OBJFMT__,elf64
+%imacro type 1+.nolist
+[type %1]
+%endmacro
+%imacro size 1+.nolist
+[size %1]
+%endmacro
+%imacro weak 1+.nolist
+[weak %1]
+%endmacro
+%endif
+