]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
bfd/ELF: slightly "better" file alignment for object files
authorJan Beulich <jbeulich@suse.com>
Mon, 13 Jan 2025 12:32:19 +0000 (13:32 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 13 Jan 2025 12:32:19 +0000 (13:32 +0100)
commitd41df13ab36b224a622c0bdf28a96a0dee79db77
tree6cd84e90dbff4fb3fd2f7d7de6b86d846f15b6dc
parent046a89fb4045d87934ce280fcf68d26322f3fdf1
bfd/ELF: slightly "better" file alignment for object files

PR gas/32435

Commit 1f1b5e506bf0 ("bfd/ELF: restrict file alignment for object
files") caused an issue in the Linux kernels modpost utility, which was
building upon .rodata sections to be 4-byte aligned in the file when
they have 4-byte alignment. While we don't want to revert back to
original behavior, apply the same alignment "capping" as done originally
in two other places also for "ordinary" sections.
bfd/elf.c