Re: SHF_LINK_ORDER fixup_link_order in ld
authorAlan Modra <amodra@gmail.com>
Wed, 13 Jan 2021 22:18:49 +0000 (08:48 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 13 Jan 2021 22:21:29 +0000 (08:51 +1030)
commit4120e4885bd80ac66fb6c643ecc9d15adec92a14
treedc4273cfbfc63dd775faf89fb68bf0ae47208e80
parentd8d1feb424fe57e54485212698f53fb90edbdf35
Re: SHF_LINK_ORDER fixup_link_order in ld

PR 27160
* ldelfgen.c (compare_link_order): Protect access of ELF section
data.
(add_link_order_input_section): Remove redundant NULL check.
Use bfd_get_flavour.
(ldelf_map_segments): Use bfd_get_flavour.
ld/ChangeLog
ld/ldelfgen.c