Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/gcc pull across from gcc 4.1 tree:



details:   https://anonhg.NetBSD.org/src/rev/9d673adf0876
branches:  trunk
changeset: 766659:9d673adf0876
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Jun 29 06:24:48 2011 +0000

description:
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.

diffstat:

 external/gpl3/gcc/dist/gcc/targhooks.c |  10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diffs (21 lines):

diff -r 5d9e6fb4c94f -r 9d673adf0876 external/gpl3/gcc/dist/gcc/targhooks.c
--- a/external/gpl3/gcc/dist/gcc/targhooks.c    Wed Jun 29 06:23:36 2011 +0000
+++ b/external/gpl3/gcc/dist/gcc/targhooks.c    Wed Jun 29 06:24:48 2011 +0000
@@ -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;
     }



Home | Main Index | Thread Index | Old Index