mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-25 02:58:54 +00:00
These names are generated by compel hgen, so there's no need in making callers know them. Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
23 lines
610 B
C
23 lines
610 B
C
#ifndef __COMPEL_UAPI_HANDLE_ELF__
|
|
#define __COMPEL_UAPI_HANDLE_ELF__
|
|
|
|
#define COMPEL_TYPE_INT (1u << 0)
|
|
#define COMPEL_TYPE_LONG (1u << 1)
|
|
#define COMPEL_TYPE_GOTPCREL (1u << 2)
|
|
|
|
typedef struct {
|
|
unsigned int offset;
|
|
unsigned int type;
|
|
long addend;
|
|
long value;
|
|
} compel_reloc_t;
|
|
|
|
/*
|
|
* Helpers for compel hgen command results. The pref should match
|
|
* the -p|--sym-prefix argument value.
|
|
*/
|
|
#define COMPEL_H_PARASITE_HEAD(pref) pref##__export_parasite_head_start
|
|
#define COMPEL_H_PARASITE_CMD(pref) pref##__export_parasite_cmd
|
|
#define COMPEL_H_PARASITE_ARGS(pref) pref##__export_parasite_args
|
|
|
|
#endif
|