| 1 |
dpkg-buildpackage: source package test |
| 2 |
dpkg-buildpackage: host architecture amd64 |
| 3 |
|
| 4 |
# all hardening options |
| 5 |
|
| 6 |
gcc -D_FORTIFY_SOURCE=2 -g -O2 -fPIE -fcf-protection -fstack-protector-strong -fstack-clash-protection -Wformat -Wformat-security -Werror=format-security -Wall -c test.c |
| 7 |
gcc -fPIE -pie -Wl,-z,relro -Wl,-z,now -o test test.o |
| 8 |
|
| 9 |
# missing flags |
| 10 |
gcc -D_FORTIFY_SOURCE=2 -g -O2 -fPIE -fstack-clash-protection -Wformat -Wformat-security -Werror=format-security -Wall -c test.c |
| 11 |
gcc -fPIE -Wl,-z,relro -Wl,-z,now -o test test.o |