X-Git-Url: https://ruderich.org/simon/gitweb/?p=blhc%2Fblhc.git;a=blobdiff_plain;f=t%2Flogs%2Fbad-library;h=82ba9c604102b94105516761fd290f381ebc9d2f;hp=32765c30bdc5d9393f733e1fea4f1b519588bf96;hb=768e3101e9e4e22e0d775ca1191549d825b679d3;hpb=0df26c1c2b30a44adc06f9c93650a6f2e31475c0 diff --git a/t/logs/bad-library b/t/logs/bad-library index 32765c3..82ba9c6 100644 --- a/t/logs/bad-library +++ b/t/logs/bad-library @@ -1,3 +1,14 @@ -gcc -D_FORTIFY_SOURCE=2 -g -O2 --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security test.c -fPIC -DPIC -o libtest.o +dpkg-buildpackage: source package test + +gcc -D_FORTIFY_SOURCE=2 -g -O2 -Wformat -Wformat-security -Werror=format-security test.c -fPIC -DPIC -o libtest.so gcc -shared -fPIC -DPIC libtest.o -lpthread -O2 -Wl,relro -Wl,--as-needed -o libtest.so gcc -shared -fPIC -DPIC libtest.o -lpthread -O2 -Wl,--as-needed -o libtest.so + +gcc -shared -fPIC test.o -Wl,-z -Wl,relro -o .libs/libtest.so.1.0.0 + +gcc -shared -o libtest.so.0d ./test-a.o test/./test-b.o -Wl,-z,now -lpthread -ldl +/usr/bin/g++ -shared -fpic -o libtest-6.1.so.0 test.o -ltiff -lz + +gcc -Wl,--as-needed -fPIE -pie -o test.cgi test.o -lgcrypt + +gcc -g -O2 -fstack-protector-strong -Wformat -Wformat-security -Werror=format-security test.c -o lib`basename test/test`.so