mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-25 03:18:36 +00:00
25 lines
377 B
C
25 lines
377 B
C
|
#ifndef __CR_LINKAGE_H__
|
||
|
#define __CR_LINKAGE_H__
|
||
|
|
||
|
#ifdef __ASSEMBLY__
|
||
|
|
||
|
#define __ALIGN .align 4, 0x00
|
||
|
#define __ALIGN_STR ".align 4, 0x00"
|
||
|
|
||
|
#define GLOBAL(name) \
|
||
|
.globl name; \
|
||
|
name:
|
||
|
|
||
|
#define ENTRY(name) \
|
||
|
.globl name; \
|
||
|
.type name, #function; \
|
||
|
__ALIGN; \
|
||
|
name:
|
||
|
|
||
|
#define END(sym) \
|
||
|
.size sym, . - sym
|
||
|
|
||
|
#endif /* __ASSEMBLY__ */
|
||
|
|
||
|
#endif /* __CR_LINKAGE_H__ */
|