Do not choose a non-ELF format input file to hold the linker created GOT sections.
authorNick Clifton <nickc@redhat.com>
Mon, 7 Aug 2017 09:09:51 +0000 (10:09 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 7 Aug 2017 09:09:51 +0000 (10:09 +0100)
commitb7a18930e3925c4092bd975e95bc3603aa1418d9
tree84759f2ee4521a7d04c921ebf2fdc553d584dd5b
parent2010d1a3f87927c3f41b3a2509dec13f4f72ef19
Do not choose a non-ELF format input file to hold the linker created GOT sections.

PR 21884
* elf32-i386.c (elf_i386_link_setup_gnu_properties): If the dynobj
has not been set then use the bfd returned by
_bfd_elf_link_setup_gnu_properties.  If that is null then search
through all the input bfds selecting the first normal, ELF format
one.
* elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): Likewise.
bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c