Skip to content
Snippets Groups Projects
Commit ed58b659 authored by Niels Möller's avatar Niels Möller
Browse files

(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
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment