1 # Command over multiple lines.
3 -g -O2 -fstack-protector\
4 --param=ssp-buffer-size=4 -Wformat-security\
5 -Werror=format-security -D_FORTIFY_SOURCE=2 -c test-a.c
6 gcc -g -O2 -fstack-protector -Wformat -Wformat-security -Werror=format-security\
9 gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -c test-c.c
10 gcc -Wl,-z,relro -o test test-a.o test-b.o test-c.o\
13 # Multiple commands in a single line.
14 gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -c test-a.c; gcc -D_FORTIFY_SOURCE=2 -c test-b.c
15 gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -D_FORTIFY_SOURCE=2 -c test-a.c ; gcc -Wformat-security -Werror=format-security -c test-b.c
16 gcc -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -c test-a.c;\
17 gcc -O2 -D_FORTIFY_SOURCE=2 -c test-b.c
18 gcc -g -O2 --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -c test-a.c ; \
19 gcc -D_FORTIFY_SOURCE=2 -fstack-protector -c test-b.c
20 # Escaped ";" - not really useful, just to check it works.
21 gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security \; -Werror=format-security -D_FORTIFY_SOURCE=1 -c test-a.c