aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'symtree.sh')
-rwxr-xr-xsymtree.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/symtree.sh b/symtree.sh
index 64a3333..d34d082 100755
--- a/symtree.sh
+++ b/symtree.sh
@@ -20,7 +20,7 @@ usage() {
sym_list() {
# with large strings, bash is much slower than sed
local type=$1; shift
- echo "%%~"`echo ",$@" | sed "s:,:,%${type}%:g"`
+ echo "%${type}%$@" | sed "s:,:,%${type}%:g"
}
show_elf() {
local elf=$1
@@ -32,7 +32,7 @@ show_elf() {
libs=$(scanelf -qF '#F%n' "${resolved}")
local u uu d dd
- u=$(scanelf -q -F'#s#F' -s'%u%' "${elf}")
+ u=$(scanelf -q -F'%s#F' -s'%u%' "${elf}")
for lib in ${libs//,/ } ; do
lib=${lib##*/}
rlib=$(find_elf "${lib}" "${resolved}")