The help says that <reserve> and <commit> should be separated by a ","
but the implementation is checking for ".". Having two numbers being
separated by a "." could be confusing, thus adjust the implementation to
match the help syntax.
binutils/ChangeLog:
* objcopy.c (copy_main): Set separator to "," between <reserve>
and <commit> for --heap and --stack.
* doc/binutils.texi: Add <commit> for --heap and --stack.
[@option{--pure}]
[@option{--impure}]
[@option{--file-alignment=}@var{num}]
- [@option{--heap=}@var{size}]
+ [@option{--heap=}@var{reserve}[,@var{commit}]]
[@option{--image-base=}@var{address}]
[@option{--section-alignment=}@var{num}]
- [@option{--stack=}@var{size}]
+ [@option{--stack=}@var{reserve}[,@var{commit}]]
[@option{--subsystem=}@var{which}:@var{major}.@var{minor}]
[@option{--compress-debug-sections}]
[@option{--decompress-debug-sections}]
char *end;
pe_heap_reserve = strtoul (optarg, &end, 0);
if (end == optarg
- || (*end != '.' && *end != '\0'))
+ || (*end != ',' && *end != '\0'))
non_fatal (_("%s: invalid reserve value for --heap"),
optarg);
else if (*end != '\0')
char *end;
pe_stack_reserve = strtoul (optarg, &end, 0);
if (end == optarg
- || (*end != '.' && *end != '\0'))
+ || (*end != ',' && *end != '\0'))
non_fatal (_("%s: invalid reserve value for --stack"),
optarg);
else if (*end != '\0')