]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
bfd_set_section_alignment errors
authorAlan Modra <amodra@gmail.com>
Sun, 16 Feb 2025 22:55:30 +0000 (09:25 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 17 Feb 2025 22:46:57 +0000 (09:16 +1030)
commit54746376570c34d063e570161453b86b5d854380
treecbde2a9c8f41e876444d0879d5772de71bd3cecd
parentd26161914cf286171b29767916a212685f9aadf3
bfd_set_section_alignment errors

I noticed when making the change from "einfo" to "fatal" that the
alignment error in _bfd_elf_link_create_gnu_property_sec lacked a %P,
and then decided that a bfd_set_section_alignment that can't happen
does not merit a separate error message.  elfxx-x86.c had copied the
same code, so fix that too.  In fact, every bfd_set_section_alignment
call in elfxx-x86.c will always return true absent some future
programming error.  This patch makes those that accompany making a
section lose their "failed to align " error and share the "failed to
create" error.  Those that are changing alignment of a section created
elsewhere now abort on bfd_set_section_alignment returning false.
bfd/elf-properties.c
bfd/elfxx-x86.c