From: Ulrich Drepper Date: Sun, 1 Oct 2000 22:36:00 +0000 (+0000) Subject: (RTLD_START): Fix computation of envp argument passed to _dl_init. X-Git-Tag: glibc-2.16-ports-merge^2~2220 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d89e0413b2053e4cf302601e002597915dac8901;p=platform%2Fupstream%2Fglibc.git (RTLD_START): Fix computation of envp argument passed to _dl_init. --- diff --git a/sysdeps/mips/dl-machine.h b/sysdeps/mips/dl-machine.h index 6d95705..2a19126 100644 --- a/sysdeps/mips/dl-machine.h +++ b/sysdeps/mips/dl-machine.h @@ -468,7 +468,9 @@ _dl_start_user:\n\ lw $4, _dl_loaded\n\ lw $5, 0($29)\n\ la $6, 4($29)\n\ - la $7, 8($29)\n\ + sll $7, $5, 2\n\ + addu $7, $7, $6\n\ + addu $7, $7, 4\n\ subu $29, 16\n\ # Call the function to run the initializers.\n\ jal _dl_init