mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-16 06:52:27 +00:00
powerpc: Clamp 32-bit binaries to 32-bit MAXUSER
sv_maxuser specifies the maximum addressable space for user space. Presently this is all 64-bits worth, which is impossible for a 32-bit process. This bug has existed since the initial import of powerpc64 in 2010. MFC after: 2 weeks
This commit is contained in:
parent
1faca2699a
commit
b51bfc30ac
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=349874
|
@ -97,7 +97,7 @@ struct sysentvec elf32_freebsd_sysvec = {
|
|||
.sv_minuser = VM_MIN_ADDRESS,
|
||||
.sv_stackprot = VM_PROT_ALL,
|
||||
#ifdef __powerpc64__
|
||||
.sv_maxuser = VM_MAXUSER_ADDRESS,
|
||||
.sv_maxuser = VM_MAXUSER_ADDRESS32,
|
||||
.sv_usrstack = FREEBSD32_USRSTACK,
|
||||
.sv_psstrings = FREEBSD32_PS_STRINGS,
|
||||
.sv_copyout_strings = freebsd32_copyout_strings,
|
||||
|
|
Loading…
Reference in a new issue