summaryrefslogtreecommitdiff
path: root/scripts/xldd.in
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@free.fr>2012-08-02 19:38:41 (GMT)
committerYann E. MORIN" <yann.morin.1998@free.fr>2012-08-02 19:38:41 (GMT)
commit0b187b2b1243bbf4ad9f2e0a01729d31feb767d0 (patch)
tree95fff5bba14ef1a41e0eb7e270a607d986f9daf4 /scripts/xldd.in
parentc74fa76e4d4594c199a726362b43d46555c92b7c (diff)
scripts/xldd: fix pattern matching with new binutils
New binutils (circa 2.2x?) append 'program interpreter' to the (NEEDED) line for the dynamic linker, which breaks our current pattern. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Diffstat (limited to 'scripts/xldd.in')
-rwxr-xr-xscripts/xldd.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/xldd.in b/scripts/xldd.in
index 42a738b..c346d66 100755
--- a/scripts/xldd.in
+++ b/scripts/xldd.in
@@ -270,9 +270,9 @@ do_process_file() {
done
do_trace ": end search path"
- for n in $( "${readelf}" -d "${file}" \
- |"${grep}" -E '\(NEEDED\)' \
- |"${sed}" -r -e 's/^.*Shared library:[[:space:]]+\[(.*)\]$/\1/;' \
+ for n in $( "${readelf}" -d "${file}" \
+ |"${grep}" -E '\(NEEDED\)' \
+ |"${sed}" -r -e 's/^.*Shared library:[[:space:]]+\[([^]]+)\].*/\1/;' \
); do
found=0
for m in "${needed_list[@]}"; do