From 345e60a623a1370b0014c818537fb74dfa78a2d2 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 30 Aug 2022 13:36:53 -0400 Subject: [PATCH] comment --- ...3_5e3c73faeaefee8f0ec1227c672f2be5._comment | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 doc/todo/standlone__58___growing_number_of_libpcre.so_lookups/comment_3_5e3c73faeaefee8f0ec1227c672f2be5._comment diff --git a/doc/todo/standlone__58___growing_number_of_libpcre.so_lookups/comment_3_5e3c73faeaefee8f0ec1227c672f2be5._comment b/doc/todo/standlone__58___growing_number_of_libpcre.so_lookups/comment_3_5e3c73faeaefee8f0ec1227c672f2be5._comment new file mode 100644 index 0000000000..9b94cdedcb --- /dev/null +++ b/doc/todo/standlone__58___growing_number_of_libpcre.so_lookups/comment_3_5e3c73faeaefee8f0ec1227c672f2be5._comment @@ -0,0 +1,18 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 3""" + date="2022-08-30T17:19:35Z" + content=""" +Had an idea: ld-linux.so hardcodes some search paths like +x86_64-linux-gnu/glibc-hwcaps/x86-64-v2/ and x86_64-linux-gnu/x86_64/. +There is no way to prevent it doing that short of a recompile. And no way +to make it use a custom ld.so.cache either. + +But.. If those directories are made symlinks back to x86_64-linux-gnu, then +it will find the library in the first path it looks in, every time! + +On my laptop, it searches x86_64-linux-gnu/glibc-hwcaps/x86-64-v2/ first, +but this will vary depending on the hardware capabilities. I made that a +symlink, and that reduces the number of ENOENT by some 300 when running +git-annex init. And reduces the libpcre opens back down to 35. +"""]] -- 2.39.5