Commit c17f301c authored by ian@well-typed.com's avatar ian@well-typed.com

Remove LD_X; it's no longer used

parent 2d2650bf
......@@ -863,17 +863,6 @@ $2=$fp_cv_$2
])# FP_PROG_LD_FLAG
# FP_PROG_LD_X
# ------------
# Sets the output variable LdXFlag to -x if ld supports this flag.
# Otherwise the variable's value is empty.
AC_DEFUN([FP_PROG_LD_X],
[
FP_PROG_LD_FLAG([-x],[LdXFlag])
AC_SUBST([LdXFlag])
])# FP_PROG_LD_X
# FP_PROG_LD_HashSize31
# ------------
# Sets the output variable LdHashSize31 to --hash-size=31 if ld supports
......
......@@ -105,8 +105,6 @@ endif
@echo 'cLdIsGNULd = "$(LdIsGNULd)"' >> $@
@echo 'cLdHasBuildId :: String' >> $@
@echo 'cLdHasBuildId = "$(LdHasBuildId)"' >> $@
@echo 'cLD_X :: String' >> $@
@echo 'cLD_X = "$(LD_X)"' >> $@
@echo 'cGHC_DRIVER_DIR :: String' >> $@
@echo 'cGHC_DRIVER_DIR = "$(GHC_DRIVER_DIR)"' >> $@
@echo 'cGHC_UNLIT_PGM :: String' >> $@
......
......@@ -2107,14 +2107,6 @@ joinObjectFiles dflags o_files output_fn = do
SysTools.FileOption "" output_fn ]
++ args)
-- Do *not* add the -x flag to ld, because we want to keep those
-- local symbols around for the benefit of external tools. e.g.
-- the 'perf report' output is much less useful if all the local
-- symbols have been stripped out.
--
-- ld_x_flag | null cLD_X = ""
-- | otherwise = "-Wl,-x"
-- suppress the generation of the .note.gnu.build-id section,
-- which we don't need and sometimes causes ld to emit a
-- warning:
......
......@@ -831,7 +831,6 @@ dnl ** check for leading underscores in symbol names
FP_LEADING_UNDERSCORE
dnl ** check for ld, whether it has an -x option, and if it is GNU ld
FP_PROG_LD_X
FP_PROG_LD_IS_GNU
FP_PROG_LD_BUILD_ID
FP_PROG_LD_NO_COMPACT_UNWIND
......
......@@ -719,11 +719,6 @@ OBJDUMP = @ObjdumpCmd@
LLC = @LlcCmd@
OPT = @OptCmd@
# Some ld's support the -x flag and some don't, so the configure
# script detects which we have and sets LdXFlag to "-x" or ""
# respectively.
LD_X = @LdXFlag@
# GNU ld supports input via a linker script, which is useful to avoid
# overflowing command-line length limits.
LdIsGNULd = @LdIsGNULd@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment