From 8fa98eeeff9bc53478d97ef722f366fea151ae64 Mon Sep 17 00:00:00 2001 From: Johan Levin Date: Thu, 5 May 2022 18:13:02 +0200 Subject: populate: Include dependencies of PIE executables Modern versions of the 'file' utility give different output for position dependent and position independent executables. The populate tool should consider both types. Signed-off-by: Johan Levin --- scripts/populate.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/populate.in b/scripts/populate.in index f68acd9c..6cd8a623 100644 --- a/scripts/populate.in +++ b/scripts/populate.in @@ -281,9 +281,9 @@ CT_TMP_DIR="${TMPDIR:-/tmp}/populate-${rand}-${$}" trap "rm -rf ${CT_TMP_DIR}" EXIT # List all ELF (executables|shared objects)... -find . -type f -exec file {} \; \ -|"${grep}" -E ': ELF [[:digit:]]+-bit (L|M)SB +(executable|shared object),' \ -|cut -d ":" -f 1 \ +find . -type f -exec file {} \; \ +|"${grep}" -E ': ELF [[:digit:]]+-bit (L|M)SB +(executable|pie executable|shared object),' \ +|cut -d ":" -f 1 \ >"${CT_TMP_DIR}/files.list" # ... and use that list to find missing dependencies -- cgit v1.2.3