dillon be3db49c80 Change the way ELF coredumps are handled. Instead of unconditionally
skipping read-only pages, which can result in valuable non-text-related
data not getting dumped, the ELF loader and the dynamic loader now mark
read-only text pages NOCORE and the coredump code only checks (primarily) for
complete inaccessibility of the page or NOCORE being set.

Certain applications which map large amounts of read-only data will
produce much larger cores.  A new sysctl has been added,
debug.elf_legacy_coredump, which will revert to the old behavior.

This commit represents collaborative work by all parties involved.
The PR contains a program demonstrating the problem.

PR:		kern/45994
Submitted by:	"Peter Edwards" <pmedwards@eircom.net>, Archie Cobbs <archie@dellroad.org>
Reviewed by:	jdp, dillon
MFC after:	7 days
2002-12-16 19:24:43 +00:00
..
2002-11-25 15:20:06 +00:00
2002-02-06 16:38:40 +00:00
2002-07-06 19:19:48 +00:00
2002-11-12 14:15:59 +00:00
2002-07-06 19:19:48 +00:00
2002-07-06 19:19:48 +00:00
2002-07-06 19:19:48 +00:00
2002-07-06 19:19:48 +00:00
2002-07-15 18:51:57 +00:00
2002-07-15 18:51:57 +00:00
2002-07-15 18:51:57 +00:00
2002-07-06 19:19:48 +00:00
2001-04-07 11:21:35 +00:00
2002-07-06 19:19:48 +00:00
2002-07-06 19:19:48 +00:00
2002-07-06 19:19:48 +00:00
2002-11-12 17:31:12 +00:00