summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFarid Zakaria <farid.m.zakaria@gmail.com>2021-12-21 05:51:04 -0800
committerFarid Zakaria <farid.m.zakaria@gmail.com>2021-12-21 06:05:13 -0800
commitd02a3ecdd7b811683d319efa9d24bdae09a3036d (patch)
tree4a5e0b5d29a22517626833a9f8bc05fd34aed47a /tests
parentdc375bc7cd94218208387e749a1c552a947e6a72 (diff)
downloadpatchelf-d02a3ecdd7b811683d319efa9d24bdae09a3036d.tar.gz
Code clarity and test working with musl
Made changes according to feedback from @Mic92 such as moving the `rewriteSections` inline into every method. Improved `replace-add-needed.sh` to work with musl libc
Diffstat (limited to 'tests')
-rwxr-xr-xtests/replace-add-needed.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/replace-add-needed.sh b/tests/replace-add-needed.sh
index b486897..4c88fd9 100755
--- a/tests/replace-add-needed.sh
+++ b/tests/replace-add-needed.sh
@@ -12,7 +12,7 @@ cp libbar.so ${SCRATCH}/
cd ${SCRATCH}
-libcldd=$(ldd ./simple | grep -oP "(?<=libc.so.6 => )[^ ]+")
+libcldd=$(ldd ./simple | awk '/ => / { print $3 }' | grep .so | head -n 1)
# We have to set the soname on these libraries
${PATCHELF} --set-soname libbar.so ./libbar.so