added stack protection detection for OpenBSD systems

This commit is contained in:
Michael Rash 2011-10-28 22:59:52 -04:00
parent 2e96ece4b0
commit dbbbe60fe4

View File

@ -97,6 +97,22 @@ do
fi
fi
if echo "$RELOC_REPORT" | grep -q '^__stack_chk_fail$'; then
good "$name: yes"
else
### for OpenBSD
if echo "$RELOC_REPORT" | grep -q '^__stack_smash_handler$'; then
good "$name: yes"
else
msg="$name: no, not found!"
if [ "$skip_stackprotector" = "yes" ]; then
good "$msg (ignored)"
else
bad "$msg"
fi
fi
fi
# Fortified
name=" Fortify Source functions"
if echo "$RELOC_REPORT" | grep -q '^__.*_chk$'; then