1
// Assembly language support for sparc CPU.
2
// Bruno Haible 29.5.1999
6
#define C(entrypoint) _##entrypoint
9
#define C(entrypoint) entrypoint
12
// When assembly language code is compiled into a shared library, ELF linkers
13
// need to know which symbols are functions.
14
#if defined(__NetBSD__) || defined(__OpenBSD__)
15
#define DECLARE_FUNCTION(name) .type C(name),@function
16
#elif defined(__svr4__) || defined(__ELF__)
18
// Some preprocessors keep the backslash in place, some don't.
19
// Some complain about the # being not in front of an ANSI C macro.
20
// Therefore we use a dollar, which will be sed-converted to # later.
21
#define DECLARE_FUNCTION(name) .type C(name),$function
23
// SunOS4, Linux/a.out
24
#define DECLARE_FUNCTION(name)