mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-12-15 22:00:47 +08:00
PR30984, assertion fail elf.c:8485
PR 30984 * ldelf.c (ldelf_place_orphan): Don't allow bfd_abs_section as a potential output section.
This commit is contained in:
@@ -2244,6 +2244,7 @@ ldelf_place_orphan (asection *s, const char *secname, int constraint)
|
||||
set, then it has been created by the linker, possibly as a
|
||||
result of a --section-start command line switch. */
|
||||
if (os->bfd_section != NULL
|
||||
&& !bfd_is_abs_section (os->bfd_section)
|
||||
&& (os->bfd_section->flags == 0
|
||||
|| (((s->flags ^ os->bfd_section->flags)
|
||||
& (SEC_LOAD | SEC_ALLOC)) == 0
|
||||
|
||||
Reference in New Issue
Block a user