mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-18 12:16:13 +08:00
Pass pointer to _dl_main_searchlist not _dl_default_scope to _dl_init_next.
1998-09-09 18:48 Ulrich Drepper <drepper@cygnus.com> * sysdeps/powerpc/dl-start.S (_start): Pass pointer to _dl_main_searchlist not _dl_default_scope to _dl_init_next. Patch by Benjamin Kosnik <bkoz@cygnus.com>.
This commit is contained in:
parent
78acf6717a
commit
8e140239ae
@ -1,3 +1,9 @@
|
||||
1998-09-09 18:48 Ulrich Drepper <drepper@cygnus.com>
|
||||
|
||||
* sysdeps/powerpc/dl-start.S (_start): Pass pointer to
|
||||
_dl_main_searchlist not _dl_default_scope to _dl_init_next.
|
||||
Patch by Benjamin Kosnik <bkoz@cygnus.com>.
|
||||
|
||||
1998-09-09 Mark Kettenis <kettenis@phys.uva.nl>
|
||||
|
||||
* elf/dl-close.c (_dl_close): Don't free imap->l_origin if it is
|
||||
|
@ -49,13 +49,13 @@ ENTRY(_start)
|
||||
mflr %r31
|
||||
/* the address of _start in r30, */
|
||||
mr %r30,%r3
|
||||
/* &_dl_argc in 29, &_dl_argv in 27, and _dl_default_scope in 28. */
|
||||
lwz %r28,_dl_default_scope@got(%r31)
|
||||
/* &_dl_argc in 29, &_dl_argv in 27, and _dl_main_searchlist in 28. */
|
||||
lwz %r28,_dl_main_searchlist@got(%r31)
|
||||
lwz %r29,_dl_argc@got(%r31)
|
||||
lwz %r27,_dl_argv@got(%r31)
|
||||
0:
|
||||
/* Set initfunc = _dl_init_next(_dl_default_scope[2]) */
|
||||
lwz %r3,8(%r28)
|
||||
/* Set initfunc = _dl_init_next(_dl_main_searchlist) */
|
||||
lwz %r3,0(%r28)
|
||||
bl _dl_init_next@plt
|
||||
/* If initfunc is NULL, we exit the loop; otherwise, */
|
||||
cmpwi %r3,0
|
||||
|
Loading…
Reference in New Issue
Block a user