diff options
author | Johan Levin <johan13@gmail.com> | 2022-05-05 18:13:02 +0200 |
---|---|---|
committer | Chris Packham <judge.packham@gmail.com> | 2022-05-08 09:48:44 +1200 |
commit | 8fa98eeeff9bc53478d97ef722f366fea151ae64 (patch) | |
tree | da22dcbed935db8bf1ff0e01340f5e49bf1dbdcd | |
parent | b6887d346fd5d54a9b778a5b27326c09ab774958 (diff) | |
download | crosstool-ng-1.25.0.tar.gz crosstool-ng-1.25.0.tar.bz2 crosstool-ng-1.25.0.zip |
populate: Include dependencies of PIE executablescrosstool-ng-1.25.0
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 <johan13@gmail.com>
-rw-r--r-- | scripts/populate.in | 6 |
1 files 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 |