summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2010-01-10 23:01:51 +0000
committerAlexis Ballier <aballier@gentoo.org>2010-01-10 23:01:51 +0000
commit4259b32ecabdd104df84c1e83f4fbf399ad898a4 (patch)
treedcc338a1eefef84b66a7e72813322228c461a95b /sys-freebsd/freebsd-lib/files
parentVersion bump. Drop old. (diff)
downloadgentoo-2-4259b32ecabdd104df84c1e83f4fbf399ad898a4.tar.gz
gentoo-2-4259b32ecabdd104df84c1e83f4fbf399ad898a4.tar.bz2
gentoo-2-4259b32ecabdd104df84c1e83f4fbf399ad898a4.zip
backport RTLD_NOLOAD support from 8.0; headers and manpage part
(Portage version: 2.2_rc61/cvs/Linux x86_64)
Diffstat (limited to 'sys-freebsd/freebsd-lib/files')
-rw-r--r--sys-freebsd/freebsd-lib/files/freebsd-lib-7.2-rtldnoload.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/sys-freebsd/freebsd-lib/files/freebsd-lib-7.2-rtldnoload.patch b/sys-freebsd/freebsd-lib/files/freebsd-lib-7.2-rtldnoload.patch
new file mode 100644
index 000000000000..77bbe2ed350d
--- /dev/null
+++ b/sys-freebsd/freebsd-lib/files/freebsd-lib-7.2-rtldnoload.patch
@@ -0,0 +1,30 @@
+Backported from 8.0.
+Even if RTLD_NOLOAD is not standard, dev-libs/nss expects it.
+Since it has made it to 8.0 we can afford backporting it.
+
+--- include/dlfcn.h.old 2010-01-10 18:42:04 +0100
++++ include/dlfcn.h 2010-01-10 18:42:19 +0100
+@@ -47,6 +47,7 @@
+ #define RTLD_GLOBAL 0x100 /* Make symbols globally available. */
+ #define RTLD_LOCAL 0 /* Opposite of RTLD_GLOBAL, and the default. */
+ #define RTLD_TRACE 0x200 /* Trace loaded objects and exit. */
++#define RTLD_NOLOAD 0x02000 /* Do not load if not already loaded. */
+
+ /*
+ * Request arguments for dlinfo().
+--- lib/libc/gen/dlopen.3.old 2010-01-10 18:43:15 +0100
++++ lib/libc/gen/dlopen.3 2010-01-10 18:45:27 +0100
+@@ -141,6 +141,13 @@
+ With this flag
+ .Fn dlopen
+ will return to the caller only in the case of error.
++.It Dv RTLD_NOLOAD
++Only return valid handle for the object if it is already loaded in
++the process address space, otherwise
++.Dv NULL
++is returned.
++Other mode flags may be specified, which will be applied for promotion
++for the found object.
+ .El
+ .Pp
+ If