summaryrefslogtreecommitdiffstats
path: root/sys/ia64/ia32
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-09-25 01:10:26 +0000
committerpeter <peter@FreeBSD.org>2003-09-25 01:10:26 +0000
commit8ecb3577d83113cde0885b76799ccebb323abf8b (patch)
treef89d7e04e53ed33050987a5b51945ab490d9ba4d /sys/ia64/ia32
parent100e3b7635a597fd1f017e000172234099e518e9 (diff)
downloadFreeBSD-src-8ecb3577d83113cde0885b76799ccebb323abf8b.zip
FreeBSD-src-8ecb3577d83113cde0885b76799ccebb323abf8b.tar.gz
Add sysentvec->sv_fixlimits() hook so that we can catch cases on 64 bit
systems where the data/stack/etc limits are too big for a 32 bit process. Move the 5 or so identical instances of ELF_RTLD_ADDR() into imgact_elf.c. Supply an ia32_fixlimits function. Export the clip/default values to sysctl under the compat.ia32 heirarchy. Have mmap(0, ...) respect the current p->p_limits[RLIMIT_DATA].rlim_max value rather than the sysctl tweakable variable. This allows mmap to place mappings at sensible locations when limits have been reduced. Have the imgact_elf.c ld-elf.so.1 placement algorithm use the same method as mmap(0, ...) now does. Note that we cannot remove all references to the sysctl tweakable maxdsiz etc variables because /etc/login.conf specifies a datasize of 'unlimited'. And that causes exec etc to fail since it can no longer find space to mmap things.
Diffstat (limited to 'sys/ia64/ia32')
-rw-r--r--sys/ia64/ia32/ia32_signal.c3
-rw-r--r--sys/ia64/ia32/ia32_sysvec.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/ia64/ia32/ia32_signal.c b/sys/ia64/ia32/ia32_signal.c
index 3871aa2..cadd38e 100644
--- a/sys/ia64/ia32/ia32_signal.c
+++ b/sys/ia64/ia32/ia32_signal.c
@@ -115,7 +115,8 @@ struct sysentvec ia32_freebsd_sysvec = {
IA32_PS_STRINGS,
VM_PROT_ALL,
ia32_copyout_strings,
- ia32_setregs
+ ia32_setregs,
+ NULL
};
static Elf32_Brandinfo ia32_brand_info = {
diff --git a/sys/ia64/ia32/ia32_sysvec.c b/sys/ia64/ia32/ia32_sysvec.c
index 3871aa2..cadd38e 100644
--- a/sys/ia64/ia32/ia32_sysvec.c
+++ b/sys/ia64/ia32/ia32_sysvec.c
@@ -115,7 +115,8 @@ struct sysentvec ia32_freebsd_sysvec = {
IA32_PS_STRINGS,
VM_PROT_ALL,
ia32_copyout_strings,
- ia32_setregs
+ ia32_setregs,
+ NULL
};
static Elf32_Brandinfo ia32_brand_info = {
OpenPOWER on IntegriCloud