PR27259, SHF_LINK_ORDER self-link
authorAlan Modra <amodra@gmail.com>
Thu, 28 Jan 2021 00:00:36 +0000 (10:30 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 28 Jan 2021 08:23:30 +0000 (18:53 +1030)
commitdef97fb945a98544938087eff3111e16ce58da6d
tree7efaf17089a481046698eabc075a1fb6cfe0b874
parent2f985dd1acf41d6b52ee2433f09a5fcc0244456a
PR27259, SHF_LINK_ORDER self-link

This stops ld from endless looping on SHF_LINK_ORDER sh_link loops.

bfd/
PR 27259
* elflink.c (_bfd_elf_gc_mark_extra_sections): Use linker_mark to
prevent endless looping of linked-to sections.
ld/
PR 27259
* ldelf.c (ldelf_before_place_orphans): Use linker_mark to
prevent endless looping of linked-to sections.
bfd/ChangeLog
bfd/elflink.c
ld/ChangeLog
ld/ldelf.c