767
758
p = copy_strings(p, bprm->envc, bprm->envp);
768
759
p = copy_strings(p, bprm->argc, bprm->argv);
771
762
/* Enforce final stack alignment of 16 bytes. This is sufficient
772
763
for all current targets, and excess alignment is harmless. */
773
764
stack_len = bprm->envc + bprm->argc + 2;
774
765
stack_len += 3; /* argc, arvg, argp */
776
767
if ((sp + stack_len) & 15)
777
768
sp -= 16 - ((sp + stack_len) & 15);
778
769
sp = loader_build_argptr(bprm->envc, bprm->argc, sp, p, 1);
780
771
/* Fake some return addresses to ensure the call chain will
781
772
* initialise library in order for us. We are required to call
782
773
* lib 1 first, then 2, ... and finally the main program (id 0).