about summary refs log tree commit diff
path: root/elf/dl-reloc.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-08-09 00:44:23 +0000
committerUlrich Drepper <drepper@redhat.com>1998-08-09 00:44:23 +0000
commit88187dcc62fc3ca4229bb3e95018fb0f5c1543c2 (patch)
tree4c1284b28aa966b0d86c81f9215436e1f924f7b6 /elf/dl-reloc.c
parent7ce241a03e2c0b49482d9d05c8ddb765e89a01d9 (diff)
downloadglibc-88187dcc62fc3ca4229bb3e95018fb0f5c1543c2.tar.gz
glibc-88187dcc62fc3ca4229bb3e95018fb0f5c1543c2.tar.xz
glibc-88187dcc62fc3ca4229bb3e95018fb0f5c1543c2.zip
Update.
1998-08-09  Ulrich Drepper  <drepper@cygnus.com>

	* elf/dl-reloc.c (_dl_relocate_object): Implement DT_BIND_NOW.
Diffstat (limited to 'elf/dl-reloc.c')
-rw-r--r--elf/dl-reloc.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/elf/dl-reloc.c b/elf/dl-reloc.c
index 1c0cbb67c4..55e62b6705 100644
--- a/elf/dl-reloc.c
+++ b/elf/dl-reloc.c
@@ -33,9 +33,15 @@ _dl_relocate_object (struct link_map *l, struct link_map *scope[], int lazy,
   if (l->l_relocated)
     return;
 
+  /* If DT_BIND_NOW is set relocate all references in this object.  We
+     do not do this if we are profiling, of course.  */
+  if (!consider_profiling && l->l_info[DT_BIND_NOW])
+    lazy = 0;
+
   if (_dl_debug_reloc)
     _dl_debug_message (1, "\nrelocation processing: ",
-		       l->l_name[0] ? l->l_name : _dl_argv[0], "\n", NULL);
+		       l->l_name[0] ? l->l_name : _dl_argv[0],
+		       lazy ? " (lazy)\n" : "\n", NULL);
 
   if (l->l_info[DT_TEXTREL])
     {