[CRIU] [PATCH] piegen: add --pcrelocs/-r option
Dmitry Safonov
dsafonov at virtuozzo.com
Mon Feb 29 02:36:51 PST 2016
nr_gotpcrel is the last variable which name we can't set with piegen's
option. Let's introduce option for that.
It will help for including two generated blobs simultaneously.
Cc: Cyrill Gorcunov <gorcunov at openvz.org>
Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
criu/pie/piegen/main.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/criu/pie/piegen/main.c b/criu/pie/piegen/main.c
index deadf58..c89b157 100644
--- a/criu/pie/piegen/main.c
+++ b/criu/pie/piegen/main.c
@@ -75,13 +75,14 @@ int main(int argc, char *argv[])
void *mem;
int fd;
- static const char short_opts[] = "f:o:s:p:v:h";
+ static const char short_opts[] = "f:o:s:p:v:r:h";
static struct option long_opts[] = {
{ "file", required_argument, 0, 'f' },
{ "output", required_argument, 0, 'o' },
{ "stream", required_argument, 0, 's' },
{ "sym-prefix", required_argument, 0, 'p' },
{ "variable", required_argument, 0, 'v' },
+ { "pcrelocs", required_argument, 0, 'r' },
{ "help", required_argument, 0, 'h' },
{ },
};
@@ -110,6 +111,9 @@ int main(int argc, char *argv[])
case 'v':
opts.var_name = optarg;
break;
+ case 'r':
+ opts.nrgotpcrel_name = optarg;
+ break;
case 'h':
default:
goto usage;
--
2.7.1
More information about the CRIU
mailing list