lib: debug: add common stack protection feature in lk

-fstack-protector is added in lk and corresponding
__stack_chk_fail function and __stack_chk_guard.

CRs-Fixed: 671500
Change-Id: I2ac186affa311005c4d727c8cd00a93c8f5014c9
diff --git a/kernel/main.c b/kernel/main.c
index 9999f85..95a4339 100644
--- a/kernel/main.c
+++ b/kernel/main.c
@@ -1,7 +1,7 @@
 /*
  * Copyright (c) 2008 Travis Geiselbrecht
  *
- * Copyright (c) 2009-2013, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2009-2014, The Linux Foundation. All rights reserved.
  *
  * Permission is hereby granted, free of charge, to any person obtaining
  * a copy of this software and associated documentation files
@@ -88,6 +88,8 @@
 	dprintf(SPEW, "initializing heap\n");
 	heap_init();
 
+	__stack_chk_guard_setup();
+
 	// initialize the threading system
 	dprintf(SPEW, "initializing threads\n");
 	thread_init();