From 7e20c854cf76466058300e0e9b0a77a7354c7408 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 29 Jul 2013 18:57:16 +0000 Subject: [PATCH] * Makefile.in (cyglsa.dll): Explicitely specify DLL entry point to harden against gcc function and block reordering optimizations. (cyglsa64.dll): Ditto. --- winsup/lsaauth/ChangeLog | 6 ++++++ winsup/lsaauth/Makefile.in | 4 ++-- 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 + + * 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 * 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 $@ $< -- 2.43.5