common/hooks: support application/x-pie-executable (from file 5.33).

This commit is contained in:
Leah Neukirchen 2018-04-16 14:37:49 +02:00
parent 9f9ab51f9a
commit d30a239d41
3 changed files with 3 additions and 3 deletions

View File

@ -114,7 +114,7 @@ hook() {
attach_debug "$f" attach_debug "$f"
fi fi
;; ;;
application/x-sharedlib*) application/x-sharedlib*|application/x-pie-executable*)
chmod +w "$f" chmod +w "$f"
# shared library # shared library
make_debug "$f" make_debug "$f"

View File

@ -74,7 +74,7 @@ hook() {
continue continue
fi fi
case "$(file -bi "$f")" in case "$(file -bi "$f")" in
application/x-executable*|application/x-sharedlib*) application/x-*executable*|application/x-sharedlib*)
for nlib in $($OBJDUMP -p "$f"|grep NEEDED|awk '{print $2}'); do for nlib in $($OBJDUMP -p "$f"|grep NEEDED|awk '{print $2}'); do
if [ -z "$verify_deps" ]; then if [ -z "$verify_deps" ]; then
verify_deps="$nlib" verify_deps="$nlib"

View File

@ -16,7 +16,7 @@ collect_sonames() {
find ${_destdir} -type f -name "*.so*" | while read f; do find ${_destdir} -type f -name "*.so*" | while read f; do
_fname="${f##*/}" _fname="${f##*/}"
case "$(file -bi "$f")" in case "$(file -bi "$f")" in
application/x-sharedlib*) application/x-sharedlib*|application/x-pie-executable)
# shared library # shared library
_soname=$(${OBJDUMP} -p "$f"|grep SONAME|awk '{print $2}') _soname=$(${OBJDUMP} -p "$f"|grep SONAME|awk '{print $2}')
# Register all versioned sonames, and # Register all versioned sonames, and