Change objcopy's --set-section-alignment option so that it takes a byte alignment...
authorNick Clifton <nickc@redhat.com>
Wed, 2 Oct 2019 10:57:16 +0000 (11:57 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 2 Oct 2019 10:57:16 +0000 (11:57 +0100)
commit146a3bb9cc78c459e63c23259d766b01c32df705
tree6e0b6b66607b6edcbb0d2d58384a93eceb350ec3
parentf4aebe9807560e240813ec6fcf7aa9613a0520cc
Change objcopy's --set-section-alignment option so that it takes a byte alignment value rather than a power of two alignment value.

PR 24942
* objcopy.c (copy_usage): Update description of
--set-section-alignment.
(copy_main): Interpret numeric argument of --set-section-alignment
as a byte alignment, not a power of two alignment.
* doc/binutils.texi: Update description of
--set-section-alignment.
* testsuite/binutils-all/set-section-alignment.d: New test.
* testsuite/binutils-all/objcopy.exp: Run the new test.
binutils/ChangeLog
binutils/doc/binutils.texi
binutils/objcopy.c
binutils/testsuite/binutils-all/objcopy.exp
binutils/testsuite/binutils-all/set-section-alignment.d [new file with mode: 0644]