From ed58b659e89a9a8821dccb8cb3edc46caecce615 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Wed, 5 Oct 2005 23:19:05 +0200
Subject: [PATCH] (PROLOGUE, EPILOGUE): New macros, checking the value of
 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 | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/asm.m4 b/asm.m4
index e00b5cff..6ba1fc27 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) 
-- 
GitLab