From af0c009d70ff28f6e90cc37da4b2987d5cbbbadb Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sun, 15 Apr 2012 16:48:34 +0000 Subject: [PATCH] use /fixed argument when linking FIPS targets to disable address space layout randomization --- util/pl/VC-32.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/pl/VC-32.pl b/util/pl/VC-32.pl index ab1449798e..5001557e7d 100644 --- a/util/pl/VC-32.pl +++ b/util/pl/VC-32.pl @@ -391,7 +391,7 @@ sub do_lib_rule $ret.="\tSET FIPS_SHA1_EXE=\$(FIPS_SHA1_EXE)\n"; $ret.="\tSET FIPS_TARGET=$target\n"; $ret.="\tSET FIPSLIB_D=\$(FIPSLIB_D)\n"; - $ret.="\t\$(FIPSLINK) \$(MLFLAGS) /map $base_arg $efile$target "; + $ret.="\t\$(FIPSLINK) \$(MLFLAGS) /fixed /map $base_arg $efile$target "; $ret.="$name @<<\n \$(SHLIB_EX_OBJ) $objs "; $ret.="\$(OBJ_D)${o}fips_premain.obj $ex\n<<\n"; } @@ -434,7 +434,7 @@ sub do_link_rule $ret.="\tSET FIPS_TARGET=$target\n"; $ret.="\tSET FIPS_SHA1_EXE=\$(FIPS_SHA1_EXE)\n"; $ret.="\tSET FIPSLIB_D=\$(FIPSLIB_D)\n"; - $ret.="\t\$(FIPSLINK) \$(LFLAGS) /map $efile$target @<<\n"; + $ret.="\t\$(FIPSLINK) \$(LFLAGS) /fixed /map $efile$target @<<\n"; $ret.="\t\$(APP_EX_OBJ) $files \$(OBJ_D)${o}fips_premain.obj $libs\n<<\n"; } else -- 2.25.1