https://sourceware.org/bugzilla/show_bug.cgi?id=33291
--- Comment #7 from Jan Beulich <jbeulich at suse dot com> --- (In reply to Jan Beulich from comment #5) > I expect the change in elf_fake_sections() needs limiting to relocatable > objects. Yet then it's not really clear why the incoming section would have ->entsize set. (In reply to Sam James from comment #6) > --- a/bfd/elf.c > +++ b/bfd/elf.c > @@ -3766,7 +3766,7 @@ elf_fake_sections (bfd *abfd, asection *asect, void > *fsarg) > if ((asect->flags & (SEC_GROUP | SEC_EXCLUDE)) == SEC_EXCLUDE) > this_hdr->sh_flags |= SHF_EXCLUDE; > > - if (this_hdr->sh_entsize == 0) > + if (bfd_link_relocatable (arg->link_info) && this_hdr->sh_entsize == 0) Minimally arg->link_info would also need checking for being non-NULL, but then this isn't quite what I had in mind anyway. -- You are receiving this mail because: You are on the CC list for the bug.