summaryrefslogtreecommitdiffstats
path: root/patches
diff options
context:
space:
mode:
Diffstat (limited to 'patches')
-rw-r--r--patches/03_ldd-dont-call-lddlibc4.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/patches/03_ldd-dont-call-lddlibc4.patch b/patches/03_ldd-dont-call-lddlibc4.patch
new file mode 100644
index 0000000..a22aa18
--- /dev/null
+++ b/patches/03_ldd-dont-call-lddlibc4.patch
@@ -0,0 +1,24 @@
+Author: "P. J. McDermott" <pj@pehjota.net>
+Subject: ldd: Don't call lddlibc4
+
+On i?86-linux-gnu systems, ldd is modified to call lddlibc4, an a.out
+compatibility stub program derived from Linux libc.
+
+We don't need ldd to handle a.out programs, so we won't make ldd call this stub
+program. Debian achieves the same effect by installing their amd64 ldd on i386.
+
+diff -Naur src.orig/libc/sysdeps/unix/sysv/linux/ldd-rewrite.sed src/libc/sysdeps/unix/sysv/linux/ldd-rewrite.sed
+--- src.orig/libc/sysdeps/unix/sysv/linux/ldd-rewrite.sed 2006-08-16 21:18:26.000000000 -0400
++++ src/libc/sysdeps/unix/sysv/linux/ldd-rewrite.sed 2014-02-17 20:41:08.096156938 -0500
+@@ -1,11 +1,2 @@
+-/Maybe extra code for non-ELF binaries/a\
+- file=$1\
+- # Run the ldd stub.\
+- lddlibc4 "$file"\
+- # Test the result.\
+- if test $? -lt 3; then\
+- return 0;\
+- fi\
+- # In case of an error punt.
+ /LD_TRACE_LOADED_OBJECTS=1/a\
+ add_env="$add_env LD_LIBRARY_VERSION=\\$verify_out"