summaryrefslogtreecommitdiff
path: root/libc/sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed')
-rw-r--r--libc/sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed b/libc/sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed
new file mode 100644
index 000000000..3f1530d31
--- /dev/null
+++ b/libc/sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed
@@ -0,0 +1,3 @@
+/LD_TRACE_LOADED_OBJECTS=1/a\
+add_env="$add_env LD_LIBRARY_VERSION=\\$verify_out"
+s_^\(RTLDLIST=\)\(.*lib\)\(\|64\)\(/[^/]*\)\(-x86-64\)\(\.so\.[0-9.]*\)[ ]*$_\1"\2\4\6 \264\4\5\6"_