Commit ed58b659 authored by Niels Möller's avatar Niels Möller

(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
parent 768bcd1d
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment