]> ruderich.org/simon Gitweb - blhc/blhc.git/blobdiff - t/logs/buildd-dpkg-fstack-protector-missing
check for -fstack-protector-strong
[blhc/blhc.git] / t / logs / buildd-dpkg-fstack-protector-missing
diff --git a/t/logs/buildd-dpkg-fstack-protector-missing b/t/logs/buildd-dpkg-fstack-protector-missing
new file mode 100644 (file)
index 0000000..0778ecd
--- /dev/null
@@ -0,0 +1,14 @@
+Toolchain package versions: ... dpkg-dev_1.16.1.2 ...
+dpkg-buildpackage: source package test
+
+gcc -g -O2 --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-a.c
+gcc -g -O2 --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-b.c
+gcc -g -O2 -fstack-protector -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-c.c
+gcc -g -O3 -fstack-protector -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-d.c
+gcc -Wl,-z,relro -o test test-a.o test-b.o test-c.o -ltest
+
+# --parm=ssp-buffer-size=4 can also be written with a space.
+gcc -g -O2 --param ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test.c
+
+Build finished at 20120308-1648
+