Properly handle dlerror() message on FreeBSD when linking linker scripts
authorGleb Popov <6yearold@gmail.com>
Tue, 15 Aug 2017 00:54:36 +0000 (20:54 -0400)
committerBen Gamari <ben@smart-cactus.org>
Tue, 15 Aug 2017 01:32:16 +0000 (21:32 -0400)
commit0a891c8c448a0e70abb075702857d743674ad1ad
tree7c1becfe4bb2b287a25bcda134e66faea9be27e4
parentad7b945257ea262e3f6f46daa4ff3e451aeeae0b
Properly handle dlerror() message on FreeBSD when linking linker scripts

Test Plan: `GHCi.loadDll "/usr/lib/libc++.so` now works on FreeBSD.

Reviewers: austin, bgamari, erikd, simonmar

Reviewed By: simonmar

Subscribers: rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D3841
rts/Linker.c