Add an option to objcopy to change the alignment of sections.
authorNiklas G?rtler <profclonk@gmail.com>
Wed, 28 Aug 2019 11:33:41 +0000 (12:33 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 28 Aug 2019 11:33:41 +0000 (12:33 +0100)
commitfa463e9fc644e7a3bad39aa73bf6be72ea865805
tree8cf65d7b31acaa739e104787a35dcf7022d3cc9f
parenta1c110a3fe02f5cb8de18137f6615005288e849e
Add an option to objcopy to change the alignment of sections.

PR 24942
* objcopy.c (SECTION_CONTEXT_SET_ALIGNMENT): New constant.
(struct section_list): Add alignment field.
(command_line_switch): Add OPTION_SET_SECTION_ALIGNMENT.
(copy_options): Add --set-section-alignment.
(copy_usage): Describe --set-section-alignment.
(find_section_list): Initialise the alignment field.
(setup_section): Handle the alignment field.
(copy_main): Handle OPTION_SET_SECTION_ALIGNMENT.
* doc/binutils.texi: Document the new feature.
* NEWS: Mention the new feature.
binutils/ChangeLog
binutils/NEWS
binutils/doc/binutils.texi
binutils/objcopy.c