Another generic ELF target assertion failure
After fixing the ld-elf/pr22836-1a segmentation fault we run into an assertion failure due to the generic ELF target not removing empty SHT_GROUP sections. Avoid that. * elf.c (bfd_elf_set_group_contents): Exit on zero size section.
This commit is contained in:
parent
3d7d6a6ff4
commit
ce5aecf873
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2019-05-27 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* elf.c (bfd_elf_set_group_contents): Exit on zero size section.
|
||||
|
||||
2019-05-27 Alan Modra <amodra@gmail.com>
|
||||
|
||||
PR 24596
|
||||
|
|
|
@ -3472,7 +3472,8 @@ bfd_elf_set_group_contents (bfd *abfd, asection *sec, void *failedptrarg)
|
|||
|
||||
/* Ignore linker created group section. See elfNN_ia64_object_p in
|
||||
elfxx-ia64.c. */
|
||||
if (((sec->flags & (SEC_GROUP | SEC_LINKER_CREATED)) != SEC_GROUP)
|
||||
if ((sec->flags & (SEC_GROUP | SEC_LINKER_CREATED)) != SEC_GROUP
|
||||
|| sec->size == 0
|
||||
|| *failedptr)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue