diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2015-12-23 23:51:02 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2015-12-23 23:52:34 +0100 |
commit | 353e97a37da98ccd174429fad348efbf01ace96c (patch) | |
tree | a7313e5e2ec3e57e93e88ccae72deb0e0de4af2a /mk | |
parent | 32215996528779f71a636350a36c01a8b3ccb1bf (diff) | |
download | haskell-353e97a37da98ccd174429fad348efbf01ace96c.tar.gz |
config.mk.in: Disable stripping by default on ARM
The Cortex A8 hardware apparently has a bug which ld.gold will try to
correct; however in order to do so it must have unstripped executables
lest we see warnings of the form (see #10376, #10464),
/usr/bin/ld.gold: warning: cannot scan executable section 1 of ...
for Cortex-A8 erratum because it has no mapping symbols.
Consequently we disabling stripping by default on this architecture.
A bit more discussion about this issue can be found in this [Android
issue](http://code.google.com/p/android/issues/detail?id=40794).
Test Plan: Try validating on ARM
Reviewers: erikd, austin, thomie
Reviewed By: austin, thomie
Differential Revision: https://phabricator.haskell.org/D1599
GHC Trac Issues: #10376, #10464
Diffstat (limited to 'mk')
-rw-r--r-- | mk/config.mk.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in index d7cd05b6a6..fd0bb5167e 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -755,6 +755,17 @@ endif ifeq "$(TARGETPLATFORM)" "x86_64-unknown-mingw32" STRIP_CMD = $(TOP)/inplace/mingw/bin/strip.exe +else ifeq "$(TARGETPLATFORM)" "arm-unknown-linux" +# The Cortex A8 hardware apparently has a bug which ld.gold will check for; +# however in order to do so it must have unstripped executables lest we +# see warnings of the form (see #10376, #10464), +# +# /usr/bin/ld.gold: warning: cannot scan executable section 1 of ... for +# Cortex-A8 erratum because it has no mapping symbols. +# +# Consequently we disabling stripping by default on this architecture. +# The hack of using `:` to disable stripping is implemented by ghc-cabal. +STRIP_CMD = : else STRIP_CMD = strip endif |