]> ruderich.org/simon Gitweb - blhc/blhc.git/blobdiff - t/logs/arch-mipsel
Support architectures which can't use all hardening flags.
[blhc/blhc.git] / t / logs / arch-mipsel
diff --git a/t/logs/arch-mipsel b/t/logs/arch-mipsel
new file mode 100644 (file)
index 0000000..d4db7a3
--- /dev/null
@@ -0,0 +1,12 @@
+dpkg-buildpackage: source package test
+dpkg-buildpackage: host architecture mipsel
+
+# no stack protector
+
+gcc -D_FORTIFY_SOURCE=2 -g -O2 -Wformat -Wformat-security -Werror=format-security -Wall -c test.c
+gcc -Wl,-z,relro -Wl,-z,now -o test test.o
+
+# missing flags
+
+gcc -D_FORTIFY_SOURCE=2 -g -O2 -Wformat -Wformat-security -Wall -c test.c
+gcc -Wl,-z,now -o test test.o