On 04/12/14 16:08, Masao Uebayashi wrote:
Module Name: src Committed By: uebayasi Date: Sat Apr 12 15:08:56 UTC 2014 Modified Files: src/sys/kern: kern_exec.c Log Message: execve_runproc: Correct thinko in Rev. 1.386; the new SP always points to after (higher adderss) argc/argv/env/aux/strings regardless of stack growing direction .
Doesn't this mean that argc, etc will get overwritten on _rtld_start call for stack grows down machines?
SP needs to point to the first available stack address. On stack grows down machines this is a lower value than argc, etc. On stack grows up machines this is a higher value.
btw, why do you keep adding 4 space idented { } ? Nick