configure: Check for binutils #17166
authorBen Gamari <bgamari.foss@gmail.com>
Thu, 29 Jun 2017 23:37:03 +0000 (19:37 -0400)
committerBen Gamari <ben@smart-cactus.org>
Thu, 29 Jun 2017 23:37:04 +0000 (19:37 -0400)
commit6171b0b326e52221a0631cf75eb4866b36abe631
treee59cd011a13a4afa6c7cde0a95fea537d9d4538c
parent7de2c07d61d8ff952164ee8e6948c1415514ee6d
configure: Check for binutils #17166

This bug affects bfd ld on ARMv7, causing ld to incorrectly emit
R_REL_COPY relocations, breaking tables-next-to-code. We've known about
it for several years now and there is not yet a fix upstream. Previously
we would simply force use of ld.gold on ARM. However, given the rework
of linking configuration, I thought a more principled solution was in
order.

Test Plan: Validate on armv7

Reviewers: austin, hvr

Subscribers: angerman, rwbarton, thomie, erikd

GHC Trac Issues: #4210

Differential Revision: https://phabricator.haskell.org/D3676
aclocal.m4