summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2013-04-18 21:06:40 +0000
committermiod <miod@openbsd.org>2013-04-18 21:06:40 +0000
commitf0a5cb6e23c3317004bb71e46224b9ef9095d11d (patch)
treea9d19f27fab70940a9c658e79dbf85447f4318fd
parentLower boot blocks load address, so that they fit within 8MB. Step 1 of many (diff)
downloadwireguard-openbsd-f0a5cb6e23c3317004bb71e46224b9ef9095d11d.tar.xz
wireguard-openbsd-f0a5cb6e23c3317004bb71e46224b9ef9095d11d.zip
Use __guard_local as the stack protector canary symbol, as already done in
gcc 4.
-rw-r--r--gnu/usr.bin/gcc/gcc/protector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/gcc/gcc/protector.c b/gnu/usr.bin/gcc/gcc/protector.c
index 926e12257ca..9d50c47fdfd 100644
--- a/gnu/usr.bin/gcc/gcc/protector.c
+++ b/gnu/usr.bin/gcc/gcc/protector.c
@@ -867,7 +867,7 @@ rtl_prologue (insn)
start_sequence ();
- _guard = gen_rtx_MEM (GUARD_m, gen_rtx_SYMBOL_REF (Pmode, "__guard"));
+ _guard = gen_rtx_MEM (GUARD_m, gen_rtx_SYMBOL_REF (Pmode, "__guard_local"));
emit_move_insn ( guard_area, _guard);
_val = get_insns ();