diff --git a/asm.m4 b/asm.m4 index e00b5cffeefaf59d0227e47cbd8d27a6d32a4c42..6ba1fc27e8a8fc5b8c8fe23457dee576e53d11d4 100644 --- a/asm.m4 +++ b/asm.m4 @@ -8,6 +8,22 @@ dnl>)dnl dnl including files from the srcdir define(<include_src>, <include(srcdir/$1)>)dnl +dnl Pseudo ops + +define(<PROLOGUE>, +<ifelse(ELF_STYLE,yes, +<.globl C_NAME($1) +.type C_NAME($1),@function +C_NAME($1):>, +<.globl C_NAME($1) +C_NAME($1):>)>) + +define(<EPILOGUE>, +<ifelse(ELF_STYLE,yes, +<.L$1end: +.size C_NAME($1), .L$1end - C_NAME($1)>,)>) + + dnl Struct defining macros dnl STRUCTURE(prefix)