This fixes coredumps of processes that use relro to make part of their
writable address space read-only.
ok guenther@
-/* $OpenBSD: uvm_unix.c,v 1.58 2016/04/04 16:34:16 stefan Exp $ */
+/* $OpenBSD: uvm_unix.c,v 1.59 2016/08/12 22:46:02 kettenis Exp $ */
/* $NetBSD: uvm_unix.c,v 1.18 2000/09/13 15:00:25 thorpej Exp $ */
/*
}
if (!(entry->protection & PROT_WRITE) &&
+ entry->aref.ar_amap == NULL &&
entry->start != p->p_p->ps_sigcode)
continue;