# HG changeset patch # User "Yann E. MORIN" # Date 1343936321 -7200 # Node ID d25fb5bf66154e7e97e84705974c76cbc3640b5c # Parent 567565640fbec1d27ce6775ea607c83dc55d58dc 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" diff -r 567565640fbe -r d25fb5bf6615 scripts/xldd.in --- a/scripts/xldd.in Wed Aug 01 19:07:37 2012 +0200 +++ b/scripts/xldd.in Thu Aug 02 21:38:41 2012 +0200 @@ -270,9 +270,9 @@ 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