nati_x86_64_defconfig: Enable CORE_DUMP_DEFAULT_ELF_HEADERS#279
Merged
gratian merged 1 commit intoJun 18, 2026
Merged
Conversation
Enable CORE_DUMP_DEFAULT_ELF_HEADERS so core files contain build-id which is useful during debugging. Signed-off-by: Chaitanya Vadrevu <chaitanya.vadrevu@emerson.com>
There was a problem hiding this comment.
Pull request overview
This PR updates the nati_x86_64_defconfig to enable CORE_DUMP_DEFAULT_ELF_HEADERS so generated ELF core dumps include partial ELF headers (including build-id information), improving post-mortem/debug symbol resolution.
Changes:
- Removes the explicit
# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not setline from the defconfig, allowing the Kconfig default (default ywhenBINFMT_ELF && ELF_CORE) to take effect.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
usercw88
approved these changes
Jun 18, 2026
gratian
approved these changes
Jun 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable CORE_DUMP_DEFAULT_ELF_HEADERS so core files contain build-id which is useful during debugging.
It is possible to configure this dynamically this seems like a useful setting so thought it'd be better to bake into kernel.
Testing
gcore <pid>contain build-ids.Without this change, this is what it looked like
Note
I noticed about 2MB increase in core file size.
core file for
/bin/sleepincreased from 420KB to 2.5MB and forniauth_daemon, it went from 388MB to 390MB.bzImage size increased from 7087104 bytes to 7095296 bytes (about 8KB).
I'll create PRs for 6.18 and 4.14 if this change is acceptable.