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.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to