aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-load.c
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2012-10-30 14:16:18 -0400
committerChris Metcalf <cmetcalf@tilera.com>2012-10-30 14:16:18 -0400
commit47cc1490e0a610bd74a31c6699a3859a823da9b3 (patch)
tree11ae0f161ebcae7547f3914a08259b0e513ef903 /elf/dl-load.c
parent017678433caae358b1782a2438b10e1ed510a8ad (diff)
downloadglibc-47cc1490e0a610bd74a31c6699a3859a823da9b3.zip
glibc-47cc1490e0a610bd74a31c6699a3859a823da9b3.tar.gz
glibc-47cc1490e0a610bd74a31c6699a3859a823da9b3.tar.bz2
Invoke DL_AFTER_LOAD if defined
This hook is useful for any arch-specific functionality that should be done on loaded objects. For the tile architecture, the hook is already provided (though we switch to using the new macro name with this commit) and implements a simulator notifier so that the simulator can load Elf symbols to match the object and generate better error messages for PC's. Also, remove a spurious definition of DL_UNMAP in dl-runtime.c
Diffstat (limited to 'elf/dl-load.c')
-rw-r--r--elf/dl-load.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c
index 4b57879..a695556 100644
--- a/elf/dl-load.c
+++ b/elf/dl-load.c
@@ -1580,6 +1580,10 @@ cannot enable executable stack as shared object requires");
add_name_to_object (l, ((const char *) D_PTR (l, l_info[DT_STRTAB])
+ l->l_info[DT_SONAME]->d_un.d_val));
+#ifdef DL_AFTER_LOAD
+ DL_AFTER_LOAD (l);
+#endif
+
/* Now that the object is fully initialized add it to the object list. */
_dl_add_to_namespace_list (l, nsid);