sun was added as joyent is patching for the same. this code is only reached if compiling for i386 (or some variation of ppc) netbsd's stack_chk_fail_local won't work for this. PR pkg/53436.
17 lines
579 B
C
17 lines
579 B
C
$NetBSD: patch-gcc_targhooks.c,v 1.1 2018/07/18 22:55:08 maya Exp $
|
|
|
|
PR pkg/53436
|
|
netbsd can't handle hidden reference to stack_chk_fail_local.
|
|
(note: this code is only happening if targeting i386)
|
|
|
|
--- gcc/targhooks.c.orig 2017-02-07 11:29:06.644837000 +0000
|
|
+++ gcc/targhooks.c
|
|
@@ -845,7 +845,7 @@ default_external_stack_protect_fail (voi
|
|
tree
|
|
default_hidden_stack_protect_fail (void)
|
|
{
|
|
-#ifndef HAVE_GAS_HIDDEN
|
|
+#if !defined(HAVE_GAS_HIDDEN) || defined(__NetBSD__) || defined(__sun)
|
|
return default_external_stack_protect_fail ();
|
|
#else
|
|
tree t = stack_chk_fail_decl;
|