summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'catalyst/portage_overlay/glibc/sys-devel/gcc/files/stubs/gcc-3.4-ssp-stub.patch')
-rw-r--r--catalyst/portage_overlay/glibc/sys-devel/gcc/files/stubs/gcc-3.4-ssp-stub.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/catalyst/portage_overlay/glibc/sys-devel/gcc/files/stubs/gcc-3.4-ssp-stub.patch b/catalyst/portage_overlay/glibc/sys-devel/gcc/files/stubs/gcc-3.4-ssp-stub.patch
new file mode 100644
index 0000000..3f620f3
--- /dev/null
+++ b/catalyst/portage_overlay/glibc/sys-devel/gcc/files/stubs/gcc-3.4-ssp-stub.patch
@@ -0,0 +1,44 @@
+--- gcc-3.4.3/gcc/common.opt
++++ gcc-3.4.3/gcc/common.opt
+@@ -152,6 +152,10 @@ Wunused-variable
+ Common
+ Warn when a variable is unused
+
++Wstack-protector
++Common
++Warn when not issuing stack smashing protection for some reason
++
+ aux-info
+ Common Separate
+ -aux-info <file> Emit declaration information into <file>
+@@ -743,6 +747,14 @@ fzero-initialized-in-bss
+ Common
+ Put zero initialized data in the bss section
+
++fstack-protector
++Common
++Enables stack protection
++
++fstack-protector-all
++Common
++Enables stack protection of every function
++
+ g
+ Common JoinedOrMissing
+ Generate debug information in default format
+--- gcc-3.4.3/gcc/opts.c
++++ gcc-3.4.3/gcc/opts.c
+@@ -804,6 +807,13 @@ common_handle_option (size_t scode, cons
+ warn_unused_variable = value;
+ break;
+
++ case OPT_fstack_protector:
++ case OPT_fstack_protector_all:
++ case OPT_Wstack_protector:
++ if (value)
++ warning ("ssp stub: stack protector is not supported");
++ break;
++
+ case OPT_aux_info:
+ case OPT_aux_info_:
+ aux_info_file_name = arg;