[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/24942] objcopy: Add option for setting section alignment
From: |
maskray at google dot com |
Subject: |
[Bug binutils/24942] objcopy: Add option for setting section alignment |
Date: |
Tue, 17 Sep 2019 12:09:40 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=24942
Fangrui Song <maskray at google dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |maskray at google dot com
--- Comment #6 from Fangrui Song <maskray at google dot com> ---
+@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}.
objcopy -I binary -B i386:x86-64 -O elf64-x86-64 --set-section-alignment
.data=8 a.txt a.o
I would expect the alignment of .data to be 8, instead of 256. Specifying the
exponent for the power of two may be awkward, I hope you can change this.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/24942] objcopy: Add option for setting section alignment,
maskray at google dot com <=
- [Bug binutils/24942] objcopy: Add option for setting section alignment, maskray at google dot com, 2019/09/17
- [Bug binutils/24942] objcopy: Add option for setting section alignment, profclonk at gmail dot com, 2019/09/17
- [Bug binutils/24942] objcopy: Add option for setting section alignment, i at maskray dot me, 2019/09/23
- [Bug binutils/24942] objcopy: Add option for setting section alignment, jh7370 at my dot bristol.ac.uk, 2019/09/24
- [Bug binutils/24942] objcopy: Add option for setting section alignment, profclonk at gmail dot com, 2019/09/24
- [Bug binutils/24942] objcopy: Add option for setting section alignment, i at maskray dot me, 2019/09/25