From aa2b180689775cbce187d8fa3092e2b2900a4012 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Tue, 1 Nov 2005 04:36:44 +0000 Subject: [PATCH] Add macros for ELF's type, size, and weak directives. svn path=/trunk/yasm/; revision=1301 --- modules/preprocs/nasm/standard.mac | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/modules/preprocs/nasm/standard.mac b/modules/preprocs/nasm/standard.mac index 39dfd5e7..5afcfaf1 100644 --- a/modules/preprocs/nasm/standard.mac +++ b/modules/preprocs/nasm/standard.mac @@ -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 + -- 2.40.0