summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2005-01-02 22:26:41 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2005-01-02 22:26:41 +0000
commit5c2aace9ddc4ffb8ef8a9c9b08450d112089660d (patch)
tree59d6f49a430a44d9057b961cab5e7247e3357578 /gnu
parentd06dbb4be7480d2f7d851363b8c62b405d076996 (diff)
-fzero-initialized-in-bss is wrong, meaning code that
depends on zero initialized variables showing up in data fails. turn it off by default. ok deraadt@ miod@
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/gcc/gcc/toplev.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/usr.bin/gcc/gcc/toplev.c b/gnu/usr.bin/gcc/gcc/toplev.c
index 91d1ad386f7..fc59a7c571c 100644
--- a/gnu/usr.bin/gcc/gcc/toplev.c
+++ b/gnu/usr.bin/gcc/gcc/toplev.c
@@ -804,7 +804,11 @@ int flag_gnu_linker = 1;
#endif
/* Nonzero means put zero initialized data in the bss section. */
+#ifdef OPENBSD_NATIVE
+int flag_zero_initialized_in_bss = 0;
+#else
int flag_zero_initialized_in_bss = 1;
+#endif
/* Enable SSA. */
int flag_ssa = 0;