From fcb8fb73179ca8edbef066beb134e64ae04a8531 Mon Sep 17 00:00:00 2001 From: Breno Rodrigues Guimaraes Date: Sat, 4 Mar 2023 13:10:16 -0300 Subject: Other switches might set changed as true. Use extraStrings size --- src/patchelf.cc | 2 +- tests/rename-dynamic-symbols.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/patchelf.cc b/src/patchelf.cc index ca247c1..405e2e6 100644 --- a/src/patchelf.cc +++ b/src/patchelf.cc @@ -2134,7 +2134,7 @@ void ElfFile::renameDynamicSymbols(const std::unordered_map map +${PATCHELF} --set-rpath changed_rpath --rename-dynamic-symbols map --output libnewrpath.so "$full_lib_name" +[ "$(${PATCHELF} --print-rpath libnewrpath.so)" = changed_rpath ] || exit 1 + -- cgit v1.2.1