MIPS/LD: Correct `mips-*-windiss' target emulation configuration
authorMaciej W. Rozycki <macro@mips.com>
Fri, 26 Jan 2018 23:05:06 +0000 (23:05 +0000)
committerMaciej W. Rozycki <macro@mips.com>
Fri, 26 Jan 2018 23:05:06 +0000 (23:05 +0000)
commit2ebd05b80b22ebf0e6c8b597f165c1e6bd6867f4
treedca506c77fef8c654e765412adefefa963101ff4
parent1e3f554897a3f52e12fffc1fecbb250f272e71e1
MIPS/LD: Correct `mips-*-windiss' target emulation configuration

Fix an issue with commit 73934d319dae ("Disable .gnu.hash on MIPS
targets"), <https://sourceware.org/ml/binutils/2006-07/msg00341.html>,
which in turn caused a regression with commit 861fb55ab50a ("Defer
allocation of R_MIPS_REL32 GOT slots"),
<https://sourceware.org/ml/binutils/2008-08/msg00096.html>, and use
`mipself.em' as the extra emulation file for `mips-*-windiss' targets,
removing a segmentation fault triggered as `_bfd_mips_elf_final_link'
calls `htab_traverse' to process LA25 stubs with `htab->la25_stubs'
being NULL.  This is in turn due to `_bfd_mips_elf_init_stubs' not
having been called, which is only done by `mipself.em'.  No LA25 stubs
are supposed to be produced for `mips-*-windiss' targets, however the
internal data structures have to be initialized.

ld/
* emulparams/elf32mipswindiss.sh (EXTRA_EM_FILE): Set to
`mipself'.
ld/ChangeLog
ld/emulparams/elf32mipswindiss.sh
This page took 0.026064 seconds and 4 git commands to generate.