Matthew Dillon fa7dd9c5bc 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-12-14 22:25:35 +00:00
2002-12-16 18:47:37 +00:00
2002-12-16 00:49:36 +00:00
2002-10-18 21:41:41 +00:00
2002-12-16 18:47:37 +00:00
2002-12-16 00:49:36 +00:00
2002-12-14 00:56:07 +00:00
2002-12-15 10:24:36 +00:00
2002-11-08 23:37:50 +00:00
2002-11-20 15:21:06 +00:00
2002-12-15 22:15:20 +00:00
2002-11-27 06:04:49 +00:00
2002-12-14 01:56:26 +00:00