catch the case where there is no symCmd
authorMoritz Angermann <moritz.angermann@gmail.com>
Fri, 21 Apr 2017 16:12:01 +0000 (12:12 -0400)
committerBen Gamari <ben@smart-cactus.org>
Fri, 21 Apr 2017 16:12:22 +0000 (12:12 -0400)
commit69d5ad068b4ddf96c1497712ee8e7cdfe1d765df
tree5c387295b304322fe3d5a3a6ea702ece2d9b0ca8
parentcfff183f9ebcbe8ec4df9dcf39e95ac077d6e312
catch the case where there is no symCmd

We do check for symCmd, to set the info->nlist value, but forgot to do
the same check for info->names.  Thus when trying to extract stroff from
symCmd, we hit a segfault.

Test Plan: The validation failure on windows is rather suspicious...
let's try this one

Reviewers: bgamari, adinapoli, austin, erikd, simonmar

Reviewed By: adinapoli

Subscribers: thomie, rwbarton

Differential Revision: https://phabricator.haskell.org/D3468
rts/Linker.c
rts/linker/MachO.c