diff options
author | dillon <dillon@FreeBSD.org> | 2002-12-16 19:24:43 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2002-12-16 19:24:43 +0000 |
commit | be3db49c80fb516ad39e2306c2dd94eb57f1fe16 (patch) | |
tree | 62395793dfc1ca744a98bca2261e363d7c975367 /tools/regression/geom/geom_simdev.c | |
parent | 1696b05046d85a2bd2206eddc6e04c79ac567c2b (diff) | |
download | FreeBSD-src-be3db49c80fb516ad39e2306c2dd94eb57f1fe16.zip FreeBSD-src-be3db49c80fb516ad39e2306c2dd94eb57f1fe16.tar.gz |
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
Diffstat (limited to 'tools/regression/geom/geom_simdev.c')
0 files changed, 0 insertions, 0 deletions