[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm
From: |
jbeulich at suse dot com |
Subject: |
[Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build |
Date: |
Mon, 06 Jan 2025 13:11:37 +0000 |
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.
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build, nickc at redhat dot com, 2025/01/06
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build, address@hidden, 2025/01/06
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build,
jbeulich at suse dot com <=
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build, jbeulich at suse dot com, 2025/01/06
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build, address@hidden, 2025/01/06
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build, jbeulich at suse dot com, 2025/01/06
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build, nickc at redhat dot com, 2025/01/06
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build, jbeulich at suse dot com, 2025/01/06
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build, address@hidden, 2025/01/06
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build, jbeulich at suse dot com, 2025/01/07
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build, masahiroy at kernel dot org, 2025/01/10
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build, jbeulich at suse dot com, 2025/01/10
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build, sam at gentoo dot org, 2025/01/12