common/hooks: support application/x-pie-executable (from file 5.33).
This commit is contained in:
parent
9f9ab51f9a
commit
d30a239d41
3 changed files with 3 additions and 3 deletions
|
@ -114,7 +114,7 @@ hook() {
|
|||
attach_debug "$f"
|
||||
fi
|
||||
;;
|
||||
application/x-sharedlib*)
|
||||
application/x-sharedlib*|application/x-pie-executable*)
|
||||
chmod +w "$f"
|
||||
# shared library
|
||||
make_debug "$f"
|
||||
|
|
|
@ -74,7 +74,7 @@ hook() {
|
|||
continue
|
||||
fi
|
||||
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
|
||||
if [ -z "$verify_deps" ]; then
|
||||
verify_deps="$nlib"
|
||||
|
|
|
@ -16,7 +16,7 @@ collect_sonames() {
|
|||
find ${_destdir} -type f -name "*.so*" | while read f; do
|
||||
_fname="${f##*/}"
|
||||
case "$(file -bi "$f")" in
|
||||
application/x-sharedlib*)
|
||||
application/x-sharedlib*|application/x-pie-executable)
|
||||
# shared library
|
||||
_soname=$(${OBJDUMP} -p "$f"|grep SONAME|awk '{print $2}')
|
||||
# Register all versioned sonames, and
|
||||
|
|
Loading…
Reference in a new issue