about summary refs log tree commit diff
path: root/sysdeps/sparc
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/sparc')
-rw-r--r--sysdeps/sparc/sparc32/dl-machine.h8
-rw-r--r--sysdeps/sparc/sparc64/dl-machine.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/sysdeps/sparc/sparc32/dl-machine.h b/sysdeps/sparc/sparc32/dl-machine.h
index fd1b9b77f2..da15e94a69 100644
--- a/sysdeps/sparc/sparc32/dl-machine.h
+++ b/sysdeps/sparc/sparc32/dl-machine.h
@@ -230,11 +230,11 @@ _dl_start_user:
 	st	%i4, [%i1+4]
 	bne	23b
 	 add	%i1, 8, %i1
-  /* Load _dl_default_scope[2] to pass to _dl_init_next.  */
-3:	sethi	%hi(_dl_default_scope), %g1
-	or	%g1, %lo(_dl_default_scope), %g1
+  /* Load _dl_main_searchlist to pass to _dl_init_next.  */
+3:	sethi	%hi(_dl_main_searchlist), %g1
+	or	%g1, %lo(_dl_main_searchlist), %g1
 	ld	[%l7+%g1], %l1
-	ld	[%l1+2*4], %l1
+	ld	[%l1], %l1
   /* Call _dl_init_next to return the address of an initializer to run.  */
 4:	call	_dl_init_next
 	 mov	%l1, %o0
diff --git a/sysdeps/sparc/sparc64/dl-machine.h b/sysdeps/sparc/sparc64/dl-machine.h
index 3faac558a8..788e239779 100644
--- a/sysdeps/sparc/sparc64/dl-machine.h
+++ b/sysdeps/sparc/sparc64/dl-machine.h
@@ -338,11 +338,11 @@ _dl_start_user:
 	stx	%i4, [%i1+8]
 	brnz,pt	%i3, 13b
 	 add	%i1, 16, %i1
-   /* Load _dl_default_scope[2] to pass to _dl_init_next.  */
-2:	sethi	%hi(_dl_default_scope), %g2
-	or	%g2, %lo(_dl_default_scope), %g2
+   /* Load _dl_main_searchlist to pass to _dl_init_next.  */
+2:	sethi	%hi(_dl_main_searchlist), %g2
+	or	%g2, %lo(_dl_main_searchlist), %g2
 	ldx	[%l7+%g2], %g2
-	ldx	[%g2+2*8], %l1
+	ldx	[%g2], %l1
    /* Call _dl_init_next to return the address of an initializer to run.  */
 3:	call	_dl_init_next
 	 mov	%l1, %o0