X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=t%2Flogs%2Fbad-cflags;h=170e23805a8037378a1a890388a07330923254f2;hb=9e0473a48cbaa821c36fb9c456c25b203d46c87c;hp=3de1841595aee5657eb85c88fe393f76eacabac1;hpb=50b731db501c79ad33cb40845c16638703a4ea15;p=blhc%2Fblhc.git diff --git a/t/logs/bad-cflags b/t/logs/bad-cflags index 3de1841..170e238 100644 --- a/t/logs/bad-cflags +++ b/t/logs/bad-cflags @@ -8,3 +8,9 @@ gcc -Wl,-z,relro -o test test-a.o test-b.o test-c.o -ltest # Compiling and linking in one step must also check CFLAGS/CPPFLAGS. gcc -Wl,-z,relro -o test test.c -ltest gcc -shared -fPIC -Wl,-z,relro -o test.so test.c -ltest + +gcc -fPIC -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat-security -Werror=format-security -c -D_FORTIFY_SOURCE=2 ../../../../src/test/test.c -o test.so.o + +gcc test.c -o test.output + +(gcc -Wl,-z,relro -o test.output test.c)