https://sourceware.org/bugzilla/show_bug.cgi?id=32435

--- Comment #22 from Jan Beulich <jbeulich at suse dot com> ---
(In reply to Nick Clifton from comment #20)
> Plus, if I have read Jan's v2 patch correctly, sections in object files will
> still be aligned, but just aligned to the architecture's minimum file
> alignment, rather than the sections specified alignment.  This means that
> the sections can still be fetched using aligned reads, and so the problem of
> a bus error resulting from an unaligned read should no longer occur.

No, there are cases where no (file) alignment would be enforced at all:
Specifically for the one caller of _bfd_elf_assign_file_position_for_section()
who passes "false" for "align" and "0" for "log_file_align". I'm pretty certain
that Linux modpost is (was) tripped by this case. An option might by to also
pass bed->s->log_file_align there, just that apart from the issue here there
didn't appear to be a reason to do so.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to