Write ELF core dumps with partial segments

configname: CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS

Linux Kernel Configuration
└─>Executable file formats
└─>Write ELF core dumps with partial segments
In linux kernel since version 2.6.28 (release Date: 2008-12-24)  
ELF core dump files describe each memory mapping of the crashed
process, and can contain or omit the memory contents of each one.
The contents of an unmodified text mapping are omitted by default.

For an unmodified text mapping of an ELF object, including just
the first page of the file in a core dump makes it possible to
identify the build ID bits in the file, without paying the i/o
cost and disk space to dump all the text. However, versions of
GDB before 6.7 are confused by ELF core dump files in this format.

The core dump behavior can be controlled per process using
the /proc/PID/coredump_filter pseudo-file; this setting is
inherited. See Documentation/filesystems/proc.rst for details.

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

depends
CONFIG_BINFMT_ELF
CONFIG_ELF_CORE