Fix -dynamic-too clashing with -o (#8180)

Signed-off-by: Austin Seipp <austin@well-typed.com>
Fix __GLASGOW_HASKELL_LLVM__ #define

(It improperly used 'show' on the Maybe Int, not the Int.)

Authored-by: Karel Gardas <karel.gardas@centrum.cz>
Signed-off-by: Austin Seipp <austin@well-typed.com>
LLVM mangler: fix AVX instruction rewriter.

This was pretty badly broken...

Authored-by: Ben Gamari <bgamari.foss@gmail.com>
Signed-off-by: Austin Seipp <austin@well-typed.com>
Fix specification of -z origin for gold.

Gold apparently doesn't recognize `-z origin`, only `-zorigin` it seems.

Authored-by: Ben Gamari <bgamari.foss@gmail.com>
Signed-off-by: Austin Seipp <austin@well-typed.com>
nativeGen: Fix spelling in comment

Signed-off-by: Austin Seipp <austin@well-typed.com>
Lower unfolding threshold for windows (again.)

We creeped back up again past the symbol threshold on my test x86_64
win2k8 test machine. This brings it down to 60600 symbols in split
windows DLL.

Signed-off-by: Austin Seipp <austin@well-typed.com>
Re-order preprocessor args to agree with User Guide (fixes #8602)

The section of the User Guide in reference is 4.12.4

Signed-off-by: Austin Seipp <austin@well-typed.com>
LlvmMangler: Rewrite @function symbols to @object

Signed-off-by: Austin Seipp <austin@well-typed.com>
LlvmMangler: Make sure no symbols slip through re-.typing

Previously a few symbols weren't flipped from %function to %object
as the section splitter was emitting them without processes. This
may be a bug in itself but for now let's just work around the issue
but rewriting all symbol `.types`.

Signed-off-by: Austin Seipp <austin@well-typed.com>
Remove trailing whitespace.

Signed-off-by: Austin Seipp <austin@well-typed.com>
Fix validate failure.

Signed-off-by: Austin Seipp <austin@well-typed.com>
runghc: Fix interaction of stdin and --ghc-args

When reading the program from standard input, runghc did not properly
handle the --ghc-arg= escape for arguments to ghc which do not start
with a dash, since arguments were processed twice and the first time the
--ghc-arg= was stripped.  Now arguments are only processed once.  For
backwards compatibility, a prefix of --ghc-arg=--ghc-arg= is allowed
since this prefix will work on both old and new versions of ghc.

This fixes #8601

Signed-off-by: Austin Seipp <austin@well-typed.com>