elfedit: Add --output-abiversion option to update ABIVERSION
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 16 Nov 2021 22:14:56 +0000 (14:14 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 17 Nov 2021 13:15:48 +0000 (05:15 -0800)
commitc9dcc18f8ded97ed7cd1dd64da8c7b37b86f61bb
tree27dc86ebf37b6e7510cc507a28f0cf28dffbf8f0
parent65e4a99a26452d99d586f6e5a0c43e24348a5125
elfedit: Add --output-abiversion option to update ABIVERSION

* NEWS: Mention --output-abiversion.
* elfedit.c (input_elf_abiversion): New.
(output_elf_abiversion): Likewise.
(update_elf_header): Update EI_ABIVERSION.
(command_line_switch): Add OPTION_INPUT_ABIVERSION and
OPTION_OUTPUT_ABIVERSION.
(options): Add --input-abiversion and --output-abiversion.
(usage): Likewise.
(main): Handle --input-abiversion and --output-abiversion.
* doc/binutils.texi: Document --input-abiversion and
--output-abiversion.
* testsuite/binutils-all/elfedit.exp: Run elfedit-6.
* testsuite/binutils-all/elfedit-6.d: New file.
binutils/NEWS
binutils/doc/binutils.texi
binutils/elfedit.c
binutils/testsuite/binutils-all/elfedit-6.d [new file with mode: 0644]
binutils/testsuite/binutils-all/elfedit.exp