https://sourceware.org/bugzilla/show_bug.cgi?id=21884

--- Comment #25 from Nick Clifton <nickc at redhat dot com> ---
Hi Guys,

I was able to reproduce the problem.  The issue is that
elf_i386_link_setup_gnu_properties was selecting a non-ELF format bfd to hold
the linker created GOT sections.  The problem did not happen with the x86_64
target because that used the bfd returned by
_bfd_elf_link_setup_gnu_properties.

I have applied a patch that updates the i386 version so that it too will use
the bfd returned by _bfd_elf_link_setup_gnu_properties, if there is one.  If
not, it will scan the input bfds like before, but it will skip any non-ELF
format ones.
(I am not sure if this scan will ever be needed now, but better to be safe than
sorry).

Likewise, the patch updates the x86_64 version so that if it does have to
perform its own scan of the input bfds, non-ELF format ones are ignored.

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to