Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
fi
# Is this file built with -fPIC?
- if ! readelf -h "${file}" 2>/dev/null | grep -qE "Type:[[:space:]]*EXEC"; then
+ if readelf -h "${file}" 2>/dev/null | grep -qE "Type:[[:space:]]*EXEC"; then
no_pie+=( "${file}" )
fi
# Does this file have an executable stack?
- if ! readelf -l "${file}" 2>/dev/null | grep -A1 "GNU_STACK" | grep -q "RWE"; then
+ if readelf -l "${file}" 2>/dev/null | grep -A1 "GNU_STACK" | grep -q "RWE"; then
exec_stack+=( "${file}" )
fi