Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/cdefs.h
Show First 20 Lines • Show All 555 Lines • ▼ Show 20 Lines | #define __weak_reference(sym,alias) \ | ||||
__asm__(".equ " #alias ", " #sym) | __asm__(".equ " #alias ", " #sym) | ||||
#define __warn_references(sym,msg) \ | #define __warn_references(sym,msg) \ | ||||
__asm__(".section .gnu.warning." #sym); \ | __asm__(".section .gnu.warning." #sym); \ | ||||
__asm__(".asciz \"" msg "\""); \ | __asm__(".asciz \"" msg "\""); \ | ||||
__asm__(".previous") | __asm__(".previous") | ||||
#define __sym_compat(sym,impl,verid) \ | #define __sym_compat(sym,impl,verid) \ | ||||
__asm__(".symver " #impl ", " #sym "@" #verid) | __asm__(".symver " #impl ", " #sym "@" #verid) | ||||
#define __sym_default(sym,impl,verid) \ | #define __sym_default(sym,impl,verid) \ | ||||
__asm__(".symver " #impl ", " #sym "@@" #verid) | __asm__(".symver " #impl ", " #sym "@@@" #verid) | ||||
#else | #else | ||||
#define __weak_reference(sym,alias) \ | #define __weak_reference(sym,alias) \ | ||||
__asm__(".weak alias"); \ | __asm__(".weak alias"); \ | ||||
__asm__(".equ alias, sym") | __asm__(".equ alias, sym") | ||||
#define __warn_references(sym,msg) \ | #define __warn_references(sym,msg) \ | ||||
__asm__(".section .gnu.warning.sym"); \ | __asm__(".section .gnu.warning.sym"); \ | ||||
__asm__(".asciz \"msg\""); \ | __asm__(".asciz \"msg\""); \ | ||||
__asm__(".previous") | __asm__(".previous") | ||||
#define __sym_compat(sym,impl,verid) \ | #define __sym_compat(sym,impl,verid) \ | ||||
__asm__(".symver impl, sym@verid") | __asm__(".symver impl, sym@verid") | ||||
#define __sym_default(impl,sym,verid) \ | #define __sym_default(impl,sym,verid) \ | ||||
__asm__(".symver impl, sym@@verid") | __asm__(".symver impl, sym@@@verid") | ||||
#endif /* __STDC__ */ | #endif /* __STDC__ */ | ||||
#endif /* __GNUC__ || __INTEL_COMPILER */ | #endif /* __GNUC__ || __INTEL_COMPILER */ | ||||
#define __GLOBL1(sym) __asm__(".globl " #sym) | #define __GLOBL1(sym) __asm__(".globl " #sym) | ||||
#define __GLOBL(sym) __GLOBL1(sym) | #define __GLOBL(sym) __GLOBL1(sym) | ||||
#if defined(__GNUC__) || defined(__INTEL_COMPILER) | #if defined(__GNUC__) || defined(__INTEL_COMPILER) | ||||
#define __IDSTRING(name,string) __asm__(".ident\t\"" string "\"") | #define __IDSTRING(name,string) __asm__(".ident\t\"" string "\"") | ||||
▲ Show 20 Lines • Show All 303 Lines • Show Last 20 Lines |