[CRIU] [PATCH 4/4] compel: rm COMPEL_H_PARASITE_* macros
Kir Kolyshkin
kir at openvz.org
Tue Dec 6 15:54:29 PST 2016
They are no longer needed.
Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
compel/include/uapi/handle-elf.h | 8 --------
compel/src/lib/handle-elf.c | 6 +++---
2 files changed, 3 insertions(+), 11 deletions(-)
diff --git a/compel/include/uapi/handle-elf.h b/compel/include/uapi/handle-elf.h
index 013e2e4..ddeecb0 100644
--- a/compel/include/uapi/handle-elf.h
+++ b/compel/include/uapi/handle-elf.h
@@ -12,12 +12,4 @@ typedef struct {
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
diff --git a/compel/src/lib/handle-elf.c b/compel/src/lib/handle-elf.c
index d53e74a..0f2b315 100644
--- a/compel/src/lib/handle-elf.c
+++ b/compel/src/lib/handle-elf.c
@@ -591,11 +591,11 @@ int __handle_elf(void *mem, size_t size)
pr_out("\tpbd->hdr.bsize = sizeof(%s_blob);\n", opts.prefix);
pr_out("\tpbd->hdr.nr_gotpcrel = %s_nr_gotpcrel;\n", opts.prefix);
pr_out("\tpbd->hdr.parasite_ip_off = "
- "COMPEL_H_PARASITE_HEAD(%s_sym);\n", opts.prefix);
+ "%s_sym__export_parasite_head_start;\n", opts.prefix);
pr_out("\tpbd->hdr.addr_cmd_off = "
- "COMPEL_H_PARASITE_CMD(%s_sym);\n", opts.prefix);
+ "%s_sym__export_parasite_cmd;\n", opts.prefix);
pr_out("\tpbd->hdr.addr_arg_off = "
- "COMPEL_H_PARASITE_ARGS(%s_sym);\n", opts.prefix);
+ "%s_sym__export_parasite_args;\n", opts.prefix);
pr_out("\tpbd->hdr.relocs = %s_relocs;\n", opts.prefix);
pr_out("\tpbd->hdr.nr_relocs = "
"sizeof(%s_relocs) / sizeof(%s_relocs[0]);\n",
--
2.7.4
More information about the CRIU
mailing list