about summary refs log tree commit diff
path: root/elf/rtld.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-03-04 09:53:17 +0000
committerUlrich Drepper <drepper@redhat.com>1998-03-04 09:53:17 +0000
commitea7eb7e3eb09a7f9444e0c599fdbafaadb3e391d (patch)
tree0d80af9968048e23bd0781ee7b9759c9af27235d /elf/rtld.c
parentf6d8a525ef354f5903f81d20ed879935c633aafd (diff)
downloadglibc-ea7eb7e3eb09a7f9444e0c599fdbafaadb3e391d.tar.gz
glibc-ea7eb7e3eb09a7f9444e0c599fdbafaadb3e391d.tar.xz
glibc-ea7eb7e3eb09a7f9444e0c599fdbafaadb3e391d.zip
Update.
1998-03-04 09:43  Ulrich Drepper  <drepper@cygnus.com>

	* elf/link.h (struct link_map): Add new field l_reloc_result.
	* elf/dl-reloc.c (_dl_relocate_object): Allocate array for results
	of relocation for the object to be profiled.
	* elf/dl-object.c (_dl_new_object): Initialize l_reloc_result field
	to NULL.
	* elf/rtld.c (_dl_start): Add comment that we must not allocate an
	array here.
	* elf/dl-runtime.c (profile_fixup): If l_reloc_result array already
	contains a result from a previous run use this instead of computing
	the value again.
	* elf/dl-minimal.c (malloc): Remove limit for size of allocation.

1998-03-04 11:32  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
Diffstat (limited to 'elf/rtld.c')
-rw-r--r--elf/rtld.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/elf/rtld.c b/elf/rtld.c
index dd79a81124..95830c54c2 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -114,6 +114,9 @@ _dl_start (void *arg)
      data access using the global offset table.  */
 
   ELF_DYNAMIC_RELOCATE (&bootstrap_map, 0, 0);
+  /* Please note that we don't allow profiling of this object and
+     therefore need not test whether we have to allocate the array
+     for the relocation results (as done in dl-reloc.c).  */
 
   /* Now life is sane; we can call functions and access global data.
      Set up to use the operating system facilities, and find out from