Files
pkgsrc-ng/lang/gcc45/patches/patch-gcc_targhooks.c
2016-12-04 09:09:38 +01:00

23 lines
654 B
C

$NetBSD$
--- gcc/targhooks.c.orig Sat Mar 27 10:27:39 2010
+++ gcc/targhooks.c
@@ -569,7 +569,17 @@ default_hidden_stack_protect_fail (void)
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;
}