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.
This commit is contained in:
parent
7fffd12601
commit
ca8fc41182
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user