[CRIU] [PATCH 7/8] compel: Move relocs stuff into include/uapi/handle-elf.h
Pavel Emelyanov
xemul at virtuozzo.com
Mon Nov 14 05:06:15 PST 2016
The same as prev patch -- clean up the compel.h
Signed-off-by: Pavel Emelyanov <xemul at virtuozzo.com>
---
compel/include/uapi/compel.h | 13 +------------
compel/include/uapi/handle-elf.h | 15 +++++++++++++++
2 files changed, 16 insertions(+), 12 deletions(-)
create mode 100644 compel/include/uapi/handle-elf.h
diff --git a/compel/include/uapi/compel.h b/compel/include/uapi/compel.h
index a3faa18..318a472 100644
--- a/compel/include/uapi/compel.h
+++ b/compel/include/uapi/compel.h
@@ -5,18 +5,7 @@
#include <stdarg.h>
#include <compel/asm/infect-types.h>
-
-#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;
-
+#include <compel/handle-elf.h>
#include <compel/log.h>
#include <compel/infect-util.h>
#include <compel/infect-rpc.h>
diff --git a/compel/include/uapi/handle-elf.h b/compel/include/uapi/handle-elf.h
new file mode 100644
index 0000000..ddeecb0
--- /dev/null
+++ b/compel/include/uapi/handle-elf.h
@@ -0,0 +1,15 @@
+#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;
+
+#endif
--
2.5.0
More information about the CRIU
mailing list