aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2019-10-02 11:57:16 +0100
committerNick Clifton <nickc@redhat.com>2019-10-02 11:57:16 +0100
commit146a3bb9cc78c459e63c23259d766b01c32df705 (patch)
tree6e0b6b66607b6edcbb0d2d58384a93eceb350ec3 /binutils/testsuite/binutils-all/objcopy.exp
parentAutomatic date update in version.in (diff)
downloadbinutils-gdb-146a3bb9cc78c459e63c23259d766b01c32df705.tar.gz
binutils-gdb-146a3bb9cc78c459e63c23259d766b01c32df705.tar.bz2
binutils-gdb-146a3bb9cc78c459e63c23259d766b01c32df705.zip
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.
Diffstat (limited to 'binutils/testsuite/binutils-all/objcopy.exp')
-rw-r--r--binutils/testsuite/binutils-all/objcopy.exp2
1 files changed, 2 insertions, 0 deletions
diff --git a/binutils/testsuite/binutils-all/objcopy.exp b/binutils/testsuite/binutils-all/objcopy.exp
index 3e3c35556db..e12a8286a59 100644
--- a/binutils/testsuite/binutils-all/objcopy.exp
+++ b/binutils/testsuite/binutils-all/objcopy.exp
@@ -1310,3 +1310,5 @@ proc objcopy_remove_relocations_from_executable { } {
objcopy_remove_relocations_from_executable
run_dump_test "pr23633"
+
+run_dump_test "set-section-alignment"