]> ruderich.org/simon Gitweb - blhc/blhc.git/blobdiff - t/logs/good-pie
First working version.
[blhc/blhc.git] / t / logs / good-pie
diff --git a/t/logs/good-pie b/t/logs/good-pie
new file mode 100644 (file)
index 0000000..fb12870
--- /dev/null
@@ -0,0 +1,4 @@
+gcc -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-a.c
+gcc -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-b.c
+gcc -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-c.c
+gcc -fPIE -pie -Wl,-z,relro -o test test-a.o test-b.o test-c.o -ltest