[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: |
masahiroy at kernel dot org |
Subject: |
[Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build |
Date: |
Wed, 25 Dec 2024 08:53:26 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=32435
Masahiro Yamada <masahiroy at kernel dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |masahiroy at kernel dot org
--- Comment #14 from Masahiro Yamada <masahiroy at kernel dot org> ---
I am the modpost maintainer.
Please forget about the .rodata.str1.4 section.
modpost searches for MODULE_DEVICE_TABLE() tags, which are usually located in
the .rodata section, and it may fail on some architectures when the .rodata
section is not properly aligned.
Comment 10, where its file offset is 0x000025c1, illustrates the problematic
case well.
Jan mentions that this does not violate the ELF specification:
https://sourceware.org/pipermail/binutils/2024-December/138027.html
I think modpost can work around the issue by using a helper like
get_unaligned(). I believe the performance regression would be negligible.
I believe (hope) the .symtab, .rel, and .rela sections are still aligned. These
sections are parsed more frequently, so alignment for these sections would be
more critical from a performance perspective.
--
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, (continued)
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build, jbeulich at suse dot com, 2024/12/19
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build, sam at gentoo dot org, 2024/12/22
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build, sam at gentoo dot org, 2024/12/22
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build, glaubitz at physik dot fu-berlin.de, 2024/12/22
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build, sam at gentoo dot org, 2024/12/22
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build, sam at gentoo dot org, 2024/12/22
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build, sam at gentoo dot org, 2024/12/22
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build, jbeulich at suse dot com, 2024/12/24
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build, ebotcazou at gcc dot gnu.org, 2024/12/24
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build, glaubitz at physik dot fu-berlin.de, 2024/12/24
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build,
masahiroy at kernel dot org <=
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build, masahiroy at kernel dot org, 2024/12/25
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build, jbeulich at suse dot com, 2024/12/27
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build, ebotcazou at gcc dot gnu.org, 2024/12/27
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build, jbeulich at suse dot com, 2024/12/27
- [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build, glaubitz at physik dot fu-berlin.de, 2024/12/27