2010-01-07 16:10 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)

* contrib/hbnetio/utils/netiosrv.hbp
  * utils/hbformat/hbformat.hbp
  * utils/hbmk2/hbmk2.hbp
  * utils/hbi18n/hbi18n.hbp
  * utils/hbtest/hbtest.hbp
  * utils/hbrun/hbrun.hbp
  * config/wce/msvcarm.mk
  * config/win/msvc.mk
    + Added -fixed:no to msvc command line. It seems to be needed
      for ASLR compatibility.
This commit is contained in:
Viktor Szakats
2010-01-07 15:12:28 +00:00
parent cee6162783
commit d89181934b
9 changed files with 20 additions and 4 deletions

View File

@@ -17,6 +17,18 @@
past entries belonging to author(s): Viktor Szakats.
*/
2010-01-07 16:10 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv.hbp
* utils/hbformat/hbformat.hbp
* utils/hbmk2/hbmk2.hbp
* utils/hbi18n/hbi18n.hbp
* utils/hbtest/hbtest.hbp
* utils/hbrun/hbrun.hbp
* config/wce/msvcarm.mk
* config/win/msvc.mk
+ Added -fixed:no to msvc command line. It seems to be needed
for ASLR compatibility.
2010-01-07 16:02 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
* Updated valgrind example.
@@ -35,8 +47,6 @@
; TODO: Enable the same for MinGW.
; TOCHECK: Please test this with old MSVC versions and MSVCARM,
maybe we will need to disable them in some cases.
; QUESTION: I'm unsure of -fixed:no MSVC option. Do we need it
to increase security?
* config/wce/msvcarm.mk
+ Changed to use link.exe for linking instead of cl[arm].exe.

View File

@@ -68,7 +68,7 @@ SYSLIBS += corelibc
LIBPATHS := -libpath:$(LIB_DIR)
LDLIBS := $(foreach lib,$(HB_USER_LIBS) $(LIBS) $(SYSLIBS),$(lib)$(LIB_EXT))
LDFLAGS += -nologo -nxcompat -dynamicbase -subsystem:windowsce -nodefaultlib:oldnames.lib -nodefaultlib:kernel32.lib
LDFLAGS += -nologo -nxcompat -dynamicbase -fixed:no -subsystem:windowsce -nodefaultlib:oldnames.lib -nodefaultlib:kernel32.lib
ifeq ($(filter $(HB_COMPILER_VER),600 700 710),)
LDFLAGS += -manifest:no
endif

View File

@@ -73,7 +73,7 @@ LD_OUT := -out:
LIBPATHS := -libpath:$(LIB_DIR)
LDLIBS := $(foreach lib,$(HB_USER_LIBS) $(LIBS) $(SYSLIBS),$(lib)$(LIB_EXT))
LDFLAGS += -nologo -nxcompat -dynamicbase $(LIBPATHS)
LDFLAGS += -nologo -nxcompat -dynamicbase -fixed:no $(LIBPATHS)
AR := lib.exe
AR_RULE = $(AR) $(ARFLAGS) $(HB_USER_AFLAGS) -nologo -out:$(LIB_DIR)/$@ $(^F) || $(RM) $(LIB_DIR)/$@

View File

@@ -9,3 +9,4 @@ netiosrv.prg
-ldflag={allmsvc}-nxcompat
-ldflag={allmsvc}-dynamicbase
-ldflag={allmsvc}-fixed:no

View File

@@ -6,6 +6,7 @@
-ldflag={allmsvc}-nxcompat
-ldflag={allmsvc}-dynamicbase
-ldflag={allmsvc}-fixed:no
-nulrdd
hbformat.prg

View File

@@ -6,6 +6,7 @@
-ldflag={allmsvc}-nxcompat
-ldflag={allmsvc}-dynamicbase
-ldflag={allmsvc}-fixed:no
-nulrdd
hbi18n.prg

View File

@@ -6,6 +6,7 @@
-ldflag={allmsvc}-nxcompat
-ldflag={allmsvc}-dynamicbase
-ldflag={allmsvc}-fixed:no
-nulrdd
-mt

View File

@@ -6,6 +6,7 @@
-ldflag={allmsvc}-nxcompat
-ldflag={allmsvc}-dynamicbase
-ldflag={allmsvc}-fixed:no
hbrun.prg

View File

@@ -6,6 +6,7 @@
-ldflag={allmsvc}-nxcompat
-ldflag={allmsvc}-dynamicbase
-ldflag={allmsvc}-fixed:no
hbtest.prg
rt_array.prg