about summary refs log tree commit diff
path: root/elf/dl-init.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-init.c')
-rw-r--r--elf/dl-init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/elf/dl-init.c b/elf/dl-init.c
index 683b94b9c7..627f823524 100644
--- a/elf/dl-init.c
+++ b/elf/dl-init.c
@@ -105,7 +105,8 @@ _dl_init (struct link_map *main_map, int argc, char **argv, char **env)
       */
       if (l->l_info[DT_INIT] != NULL)
 	{
-	  init = (init_t) (l->l_addr + l->l_info[DT_INIT]->d_un.d_ptr);
+	  init = (init_t) DL_DT_INIT_ADDRESS
+	    (l, l->l_addr + l->l_info[DT_INIT]->d_un.d_ptr);
 
 	  /* Call the function.  */
 	  init (argc, argv, env);