Mike McCormack : preloader: Allow compiling the preloader with -fstack-protector.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jan 26 06:44:11 CST 2006


Module: wine
Branch: refs/heads/master
Commit: 7cd9a8f8dc9536393e4e6042ae18bfb89b8671e5
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=7cd9a8f8dc9536393e4e6042ae18bfb89b8671e5

Author: Mike McCormack <mike at codeweavers.com>
Date:   Thu Jan 26 13:21:54 2006 +0100

preloader: Allow compiling the preloader with -fstack-protector.

---

 loader/preloader.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/loader/preloader.c b/loader/preloader.c
index 040fb66..6f07692 100644
--- a/loader/preloader.c
+++ b/loader/preloader.c
@@ -155,6 +155,9 @@ struct wld_link_map {
  */
 void __bb_init_func() { return; }
 
+/* similar to the above but for -fstack-protector */
+void *__stack_chk_guard = 0;
+void __stack_chk_fail(void) { return; }
 
 /*
  * The _start function is the entry and exit point of this program




More information about the wine-cvs mailing list