]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
(PROLOGUE, EPILOGUE): New macros, checking the value of
authorNiels Möller <nisse@lysator.liu.se>
Wed, 5 Oct 2005 21:19:05 +0000 (23:19 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Wed, 5 Oct 2005 21:19:05 +0000 (23:19 +0200)
ELF_STYLE. So far, used and tested only for the x86 assembler
files, and needed to make the assembler happy both with ELF
(linux, solaris) and COFF (windows).

Rev: src/nettle/asm.m4:1.11

asm.m4

diff --git a/asm.m4 b/asm.m4
index e00b5cffeefaf59d0227e47cbd8d27a6d32a4c42..6ba1fc27e8a8fc5b8c8fe23457dee576e53d11d4 100644 (file)
--- 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)