X-Git-Url: https://ruderich.org/simon/gitweb/?p=blhc%2Fblhc.git;a=blobdiff_plain;f=t%2Flogs%2Fgood-library;h=76d461f1212a5b37be61bb1eeebe42fbf65e39de;hp=c160a8a800ebcd6deeb74ea2e1de975e55e323c5;hb=95124b124684fece31ecba687478878aa609756b;hpb=0df26c1c2b30a44adc06f9c93650a6f2e31475c0 diff --git a/t/logs/good-library b/t/logs/good-library index c160a8a..76d461f 100644 --- a/t/logs/good-library +++ b/t/logs/good-library @@ -2,3 +2,7 @@ # libraries. gcc -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security test.c -fPIC -DPIC -o libtest.o gcc -shared -fPIC -DPIC libtest.o -lpthread -O2 -Wl,relro -Wl,now -Wl,--as-needed -o libtest.so + +gcc -shared -fPIC test.o -Wl,-z -Wl,relro -Wl,now -o .libs/libtest.so.1.0.0 + +gcc -shared -fPIE -pie -o libtest.so.0d ./test-a.o test/./test-b.o -Wl,-z,relro -Wl,-z,now -lpthread -ldl