Skip to content

Commit 8950215

Browse files
Roland McGrathtorvalds
Roland McGrath
authored andcommitted
coredump: default CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y
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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 1b0d300 commit 8950215

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/Kconfig.binfmt

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ config BINFMT_ELF_FDPIC
4242

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

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

6565
config BINFMT_FLAT
6666
bool "Kernel support for flat binaries"

0 commit comments

Comments
 (0)