about summary refs log tree commit diff
path: root/elf/dl-support.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-07-21 06:43:05 +0000
committerUlrich Drepper <drepper@redhat.com>2000-07-21 06:43:05 +0000
commitf53c03c20d6039d78cf1ccb43fbbbe79e0ec7e9e (patch)
treefa9ef879669c57ff5becd3911f5ee26211229ecd /elf/dl-support.c
parentd052b31b79a3681db7de04177a55b04354320a61 (diff)
downloadglibc-f53c03c20d6039d78cf1ccb43fbbbe79e0ec7e9e.tar.gz
glibc-f53c03c20d6039d78cf1ccb43fbbbe79e0ec7e9e.tar.xz
glibc-f53c03c20d6039d78cf1ccb43fbbbe79e0ec7e9e.zip
Update.
	* elf/rtld.c: Define _dl_bind_not variable.
	(process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
	* elf/dl-support.c: Likewise.
	* sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
	* elf/dl-runtime.c (fixup): Don't remember looked up value if
	_dl_bind_not.
	(profile_fixup): Likewise.
Diffstat (limited to 'elf/dl-support.c')
-rw-r--r--elf/dl-support.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/elf/dl-support.c b/elf/dl-support.c
index 8b1103966a..ec0bbb22bb 100644
--- a/elf/dl-support.c
+++ b/elf/dl-support.c
@@ -67,6 +67,9 @@ void *__libc_stack_end;
 /* Path where the binary is found.  */
 const char *_dl_origin_path;
 
+/* Nonzero if runtime lookup should not update the .got/.plt.  */
+int _dl_bind_not;
+
 /* Initially empty list of loaded objects.  */
 struct link_map *_dl_loaded;
 
@@ -109,6 +112,8 @@ non_dynamic_init (void)
 
   _dl_lazy = *(getenv ("LD_BIND_NOW") ?: "") == '\0';
 
+  _dl_bind_not = *(getenv ("LD_BIND_NOT") ?: "") != '\0';
+
   _dl_dynamic_weak = *(getenv ("LD_DYNAMIC_WEAK") ?: "") == '\0';
 
 #ifdef DL_PLATFORM_INIT