Skip to content

Commit

Permalink
coredump: default CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y
Browse files Browse the repository at this point in the history
The userland ELF tools have been coping with partial-segments core files
for a few years now.  Multiple distro builds are now setting this option.
It behooves everyone who ever deals with core files to have more info
dumped in there, especially as more and more people's compilers are
producing build IDs.  Make it the default.

Anyone using older tools confused by these core files can configure this
option off, or just change /proc/PID/coredump_filter after boot.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Roland McGrath authored and Linus Torvalds committed Oct 28, 2010
1 parent 1b0d300 commit 8950215
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/Kconfig.binfmt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ config BINFMT_ELF_FDPIC

config CORE_DUMP_DEFAULT_ELF_HEADERS
bool "Write ELF core dumps with partial segments"
default n
default y
depends on BINFMT_ELF && ELF_CORE
help
ELF core dump files describe each memory mapping of the crashed
Expand All @@ -60,7 +60,7 @@ config CORE_DUMP_DEFAULT_ELF_HEADERS
inherited. See Documentation/filesystems/proc.txt for details.

This config option changes the default setting of coredump_filter
seen at boot time. If unsure, say N.
seen at boot time. If unsure, say Y.

config BINFMT_FLAT
bool "Kernel support for flat binaries"
Expand Down

0 comments on commit 8950215

Please sign in to comment.