Module Name: src
Committed By: mrg
Date: Wed Jun 29 06:24:48 UTC 2011
Modified Files:
src/external/gpl3/gcc/dist/gcc: targhooks.c
Log Message:
pull across from gcc 4.1 tree:
>revision 1.2
>date: 2007/09/15 16:24:06; author: christos; state: Exp; lines: +10 -0
>Add a hack to handle that the __stack_chk_fail_local call is not generated
>properly for pic code; more explained in the code.
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gcc/dist/gcc/targhooks.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gcc/dist/gcc/targhooks.c
diff -u src/external/gpl3/gcc/dist/gcc/targhooks.c:1.1.1.1 src/external/gpl3/gcc/dist/gcc/targhooks.c:1.2
--- src/external/gpl3/gcc/dist/gcc/targhooks.c:1.1.1.1 Tue Jun 21 01:20:15 2011
+++ src/external/gpl3/gcc/dist/gcc/targhooks.c Wed Jun 29 06:24:48 2011
@@ -569,7 +569,17 @@
DECL_ARTIFICIAL (t) = 1;
DECL_IGNORED_P (t) = 1;
DECL_VISIBILITY_SPECIFIED (t) = 1;
+#if 1
+ /*
+ * This is a hack:
+ * It appears that our gas does not generate @PLT for hidden
+ * symbols. It could be that we need a newer version, or that
+ * this local function is handled differently on linux.
+ */
+ DECL_VISIBILITY (t) = VISIBILITY_DEFAULT;
+#else
DECL_VISIBILITY (t) = VISIBILITY_HIDDEN;
+#endif
stack_chk_fail_decl = t;
}