https://sourceware.org/bugzilla/show_bug.cgi?id=26907
--- Comment #4 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Alan Modra <amo...@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8d748d1dc56406228c2c76de2563859213364cbf commit 8d748d1dc56406228c2c76de2563859213364cbf Author: Alan Modra <amo...@gmail.com> Date: Sat Nov 28 08:45:02 2020 +1030 PR26907, segment contains empty SHT_NOBITS section Section ordering is important for _bfd_elf_map_sections_to_segments and assign_file_positions_for_load_sections, which are only prepared to handle sections in increasing LMA order. When zero size sections are involved it is possible to have multiple sections at the same LMA. In that case the zero size sections must sort before any non-zero size sections regardless of their types. bfd/ PR 26907 * elf.c (elf_sort_sections): Don't sort zero size !load sections after load sections. ld/ * testsuite/ld-elf/pr26907.ld, * testsuite/ld-elf/pr26907.s, * testsuite/ld-elf/pr26907.d: New test. -- You are receiving this mail because: You are on the CC list for the bug.