PE linker segmentation fault with MALLOC_PERTURB_=1
authorAlan Modra <amodra@gmail.com>
Tue, 28 May 2019 10:42:32 +0000 (20:12 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 28 May 2019 11:17:14 +0000 (20:47 +0930)
commiteabf307f1d77b952dd76f2618e4e6f72d87e5d10
tree0a7de3889e4b9996f9c695091e4498dc39aa4ca2
parent65f381e729bedb933f3e1376e7f53f0ff63ac9a8
PE linker segmentation fault with MALLOC_PERTURB_=1

PR 24596
* emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Check that
the output is coff before accessing coff tdata.
* emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
ld/ChangeLog
ld/emultempl/pe.em
ld/emultempl/pep.em