diff options
author | Nick Clifton <nickc@redhat.com> | 2019-10-02 11:55:02 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2019-10-02 11:55:02 +0100 |
commit | de4859eacb74a440d9fd61e4a0f051e3737a05dd (patch) | |
tree | af63b3781d3bf350958b4ee7f407ebd805dec414 /binutils/doc | |
parent | c292080e11976e05603af9a91a67b052c33b56e3 (diff) | |
download | gdb-de4859eacb74a440d9fd61e4a0f051e3737a05dd.zip gdb-de4859eacb74a440d9fd61e4a0f051e3737a05dd.tar.gz gdb-de4859eacb74a440d9fd61e4a0f051e3737a05dd.tar.bz2 |
Change objcopy's --set-section-alignment option to take 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/doc')
-rw-r--r-- | binutils/doc/binutils.texi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi index bb37cb0..b0de3d0 100644 --- a/binutils/doc/binutils.texi +++ b/binutils/doc/binutils.texi @@ -1622,9 +1622,9 @@ contents--just remove the section instead. Not all flags are meaningful for all object file formats. @item --set-section-alignment @var{sectionpattern}=@var{align} -Set the alignment for any sections matching @var{sectionpattern}. @var{align} -specifies the alignment as the exponent for the power of two, i.e. the -alignment in bytes will be 2^@var{align}. +Set the alignment for any sections matching @var{sectionpattern}. +@var{align} specifies the alignment in bytes and must be a power of +two, i.e. 1, 2, 4, 8@dots{}. @item --add-section @var{sectionname}=@var{filename} Add a new section named @var{sectionname} while copying the file. The |