$OpenBSD: patch-compiler_main_SysTools_lhs,v 1.2 2015/01/01 19:25:36 kili Exp $

Our ld(1) doesn't understand those options.

--- compiler/main/SysTools.lhs.orig	Fri Dec 19 16:35:34 2014
+++ compiler/main/SysTools.lhs	Mon Dec 29 10:24:49 2014
@@ -749,8 +749,7 @@ getLinkerInfo' dflags = do
         | any ("GNU ld" `isPrefixOf`) stdo =
           -- GNU ld specifically needs to use less memory. This especially
           -- hurts on small object files. Trac #5240.
-          return (GnuLD $ map Option ["-Wl,--hash-size=31",
-                                      "-Wl,--reduce-memory-overheads"])
+          return (GnuLD [])
 
         | any ("GNU gold" `isPrefixOf`) stdo =
           -- GNU gold does not require any special arguments.
