diff options
author | dfr <dfr@FreeBSD.org> | 1998-10-15 09:52:19 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1998-10-15 09:52:19 +0000 |
commit | ca8fc411822d4c6ffc5d20a09e6da267b7b7252c (patch) | |
tree | dae38f12c3d574c92f85707d6bbd602922e22ae6 /sys/kern | |
parent | 7fffd12601dc65f97bcc2335f9f0d42ff9249da9 (diff) | |
download | FreeBSD-src-ca8fc411822d4c6ffc5d20a09e6da267b7b7252c.zip FreeBSD-src-ca8fc411822d4c6ffc5d20a09e6da267b7b7252c.tar.gz |
Don't frob the user stack directly, use suword instead. This fixes the
elf_freebsd_fixup() panic which many people have noticed on the alpha.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/imgact_elf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c index f3e787f..26ba584 100644 --- a/sys/kern/imgact_elf.c +++ b/sys/kern/imgact_elf.c @@ -26,7 +26,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: imgact_elf.c,v 1.37 1998/10/11 19:22:07 jdp Exp $ + * $Id: imgact_elf.c,v 1.38 1998/10/13 08:24:40 dg Exp $ */ #include "opt_rlimit.h" @@ -663,7 +663,7 @@ elf_freebsd_fixup(long **stack_base, struct image_params *imgp) imgp->auxargs = NULL; (*stack_base)--; - **stack_base = (long)imgp->argc; + suword(*stack_base, (long) imgp->argc); return 0; } |