[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/24942] objcopy: Add option for setting section alignment
From: |
profclonk at gmail dot com |
Subject: |
[Bug binutils/24942] objcopy: Add option for setting section alignment |
Date: |
Wed, 28 Aug 2019 09:31:02 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=24942
--- Comment #2 from Niklas Gürtler <profclonk at gmail dot com> ---
Hi Nick,
I knew about "incbin" but needing an (additional) assembly file seems somewhat
clunky. There are even more possibilities: Putting each converted .o file into
its own section, and aligning those sections via the final linker script.
Hacking together a tool that modifies the alignment field in the ELF header. It
might even be possible to do a partial linking step to set the alignment of a
objcopy-produced .o-file using a linker script.
However, if objcopy is capable of converting binary to ELF, then why not make
it actually useful by setting the alignment requirement, especially since it's
a rather simple fix? This would allow us to produce the desired .o file with
one simple step.
Greetings,
Niklas
--
You are receiving this mail because:
You are on the CC list for the bug.