diff options
author | Yann E. MORIN" <yann.morin.1998@free.fr> | 2012-08-02 21:38:41 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@free.fr> | 2012-08-02 21:38:41 +0200 |
commit | 0b187b2b1243bbf4ad9f2e0a01729d31feb767d0 (patch) | |
tree | 95fff5bba14ef1a41e0eb7e270a607d986f9daf4 | |
parent | c74fa76e4d4594c199a726362b43d46555c92b7c (diff) | |
download | crosstool-ng-0b187b2b1243bbf4ad9f2e0a01729d31feb767d0.tar.gz crosstool-ng-0b187b2b1243bbf4ad9f2e0a01729d31feb767d0.tar.bz2 crosstool-ng-0b187b2b1243bbf4ad9f2e0a01729d31feb767d0.zip |
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>
-rwxr-xr-x | scripts/xldd.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/xldd.in b/scripts/xldd.in index 42a738b4..c346d667 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 |