Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2013-07-29 22:57:16 +0400
committerCorinna Vinschen <corinna@vinschen.de>2013-07-29 22:57:16 +0400
commit7e20c854cf76466058300e0e9b0a77a7354c7408 (patch)
treef15f8473a6f450f3dfe7602ca42dc87f20ba132e
parent033fe7d87f571555894c8d92a2c1f25c58c04c52 (diff)
* Makefile.in (cyglsa.dll): Explicitely specify DLL entry point to
harden against gcc function and block reordering optimizations. (cyglsa64.dll): Ditto.
-rw-r--r--winsup/lsaauth/ChangeLog6
-rw-r--r--winsup/lsaauth/Makefile.in4
2 files changed, 8 insertions, 2 deletions
diff --git a/winsup/lsaauth/ChangeLog b/winsup/lsaauth/ChangeLog
index bd0ecbd1c..0056d2bd2 100644
--- a/winsup/lsaauth/ChangeLog
+++ b/winsup/lsaauth/ChangeLog
@@ -1,3 +1,9 @@
+2013-07-29 Corinna Vinschen <corinna@vinschen.de>
+
+ * Makefile.in (cyglsa.dll): Explicitely specify DLL entry point to
+ harden against gcc function and block reordering optimizations.
+ (cyglsa64.dll): Ditto.
+
2013-04-23 Corinna Vinschen <corinna@vinschen.de>
* Merge in cygwin-64bit-branch. See ChangeLog.64bit for details.
diff --git a/winsup/lsaauth/Makefile.in b/winsup/lsaauth/Makefile.in
index 162e5aa0c..53e91c406 100644
--- a/winsup/lsaauth/Makefile.in
+++ b/winsup/lsaauth/Makefile.in
@@ -67,13 +67,13 @@ $(DEF32): cyglsa.din config.status
$(SHELL) config.status
$(DLL32): $(OBJ32) $(DEF32)
- $(MINGW32_CC) -s $(WIN32_LDFLAGS) -o $@ $^ $(LIBS)
+ $(MINGW32_CC) -s $(WIN32_LDFLAGS) -e _DllMain@12 -o $@ $^ $(LIBS)
$(OBJ32): cyglsa.c
$(MINGW32_CC) $(WIN32_CFLAGS) -c -o $@ $<
$(DLL64): $(OBJ64) $(DEF64)
- $(MINGW64_CC) -s $(WIN32_LDFLAGS) -o $@ $^ $(LIBS)
+ $(MINGW64_CC) -s $(WIN32_LDFLAGS) -e DllMain -o $@ $^ $(LIBS)
$(OBJ64): cyglsa.c
$(MINGW64_CC) $(WIN32_CFLAGS) -c -o $@ $<