The stack protection note (value 2) encodes the setting of the -fstack-protector option. Possible values are:
0Not compiled with any setting of -fstack-protector (or the setting is unknown).
1Compiled with just -fstack-protector.
2Compiled with -fstack-protector-all.
3Compiled with -fstack-protector-strong.
4Compiled with -fstack-protector-explicit.