diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2006-11-11 23:05:24 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2006-11-11 23:05:24 +0000 |
commit | 1919b8e8607116ed65d6accf59b5f0b249f7499f (patch) | |
tree | 363a3e197c421b8ffca5a22d049a2c1dece8700e /libexec/ld.so/sh/ldasm.S | |
parent | 3edcd4ffc0ba4c67d1cbfe3bfc056ba3bef42cd4 (diff) |
when calculating envp, skip over the NULL between argv and envp.
Diffstat (limited to 'libexec/ld.so/sh/ldasm.S')
-rw-r--r-- | libexec/ld.so/sh/ldasm.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/ld.so/sh/ldasm.S b/libexec/ld.so/sh/ldasm.S index 4938e0a04a5..ea6ee01d65e 100644 --- a/libexec/ld.so/sh/ldasm.S +++ b/libexec/ld.so/sh/ldasm.S @@ -1,4 +1,4 @@ -/* $OpenBSD: ldasm.S,v 1.4 2006/11/11 02:38:31 drahn Exp $ */ +/* $OpenBSD: ldasm.S,v 1.5 2006/11/11 23:05:23 drahn Exp $ */ /* * Copyright (c) 2006 Dale Rahn @@ -91,6 +91,7 @@ ENTRY(_dl_start) add #4, r5 mov r4, r6 + add #1, r6 shll2 r6 add r5, r6 // calc envp jmp @r0 |