objcopy: fix typo in --heap and --stack parser
authorClément Chigot <chigot@adacore.com>
Tue, 17 Oct 2023 12:57:25 +0000 (14:57 +0200)
committerClément Chigot <chigot@adacore.com>
Mon, 23 Oct 2023 08:17:47 +0000 (10:17 +0200)
commitbe381d7175e4cb8de506d9175969396669fe5b88
tree5a17fc7b8f19fc6761f10663b254720819bfcbf2
parent4d47dfdba34de3bbd6c7433d024a5d049e29bed4
objcopy: fix typo in --heap and --stack parser

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.
binutils/doc/binutils.texi
binutils/objcopy.c