summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell King <rmk@arm.linux.org.uk>2016-06-06 18:01:29 +0100
committerSimon Horman <horms@verge.net.au>2016-06-08 09:24:10 +0900
commitdfd1de0460999561e6b82e927ec917df009e6505 (patch)
tree8d547aa1d17863595cdf732f5cd934969e2a8800
parent9eb4a681fde5273e9b7211bde38bc6faeac0bc25 (diff)
arm: report which ELF core format we will use
Report which ELF core format will be used to create the template ELF core dump in the debug information. Reviewed-by: Pratyush Anand <panand@redhat.com> Signed-off-by: Russell King <rmk@arm.linux.org.uk> Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--kexec/arch/arm/crashdump-arm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kexec/arch/arm/crashdump-arm.c b/kexec/arch/arm/crashdump-arm.c
index 3b71267..4a89b5e 100644
--- a/kexec/arch/arm/crashdump-arm.c
+++ b/kexec/arch/arm/crashdump-arm.c
@@ -315,6 +315,8 @@ int load_crashdump_segments(struct kexec_info *info, char *mod_cmdline)
last_ranges = 0;
if (crash_memory_ranges[last_ranges].end > UINT32_MAX) {
+ dbgprintf("Using 64-bit ELF core format\n");
+
/* for support LPAE enabled kernel*/
elf_info.class = ELFCLASS64;
@@ -323,6 +325,7 @@ int load_crashdump_segments(struct kexec_info *info, char *mod_cmdline)
usablemem_rgns.size, &buf, &bufsz,
ELF_CORE_HEADER_ALIGN);
} else {
+ dbgprintf("Using 32-bit ELF core format\n");
err = crash_create_elf32_headers(info, &elf_info,
usablemem_rgns.ranges,
usablemem_rgns.size, &buf, &bufsz,