stack pointer on 64-bit architecture

Wojciech Puchar wojtek at puchar.net
Mon Apr 13 07:14:04 UTC 2015


thanks

On Mon, 13 Apr 2015, Oliver Pinter wrote:

> The stack address come from this code:
>
> https://github.com/freebsd/freebsd/blob/master/sys/kern/kern_exec.c#L1065
> where sv->sv_usrstack depends on architecture and on image activator.
>
> and this the other place, where the stack address is "hardcoded":
> https://github.com/freebsd/freebsd/blob/master/sys/kern/kern_exec.c#L1240
>
>
> Just grep against sv_psstrings and sv_usrstack to see what depend on
> current hardcoded stack address. ;)
>
> On Sun, Apr 12, 2015 at 9:19 PM, Wojciech Puchar <wojtek at puchar.net> wrote:
>> what decides where stack is located when process starts on 64-bit machine
>> (x86-64)?
>>
>> it starts normally below 0x0000800000000000
>>
>> can starting address be set to different (smaller) value?
>>
>> _______________________________________________
>> freebsd-hackers at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
>> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
>
>


More information about the freebsd-hackers mailing list