[prev in list] [next in list] [prev in thread] [next in thread]
List: kexec
Subject: [PATCH 2/2] core dump file support for ELF loader
From: ying.huang () intel ! com (Huang Ying)
Date: 2008-10-29 3:24:30
Message-ID: 1225250670.24095.41.camel () yhuang-dev ! sh ! intel ! com
[Download RAW message or body]
This patch adds core dump file support to ELF file loader. This can be
used by kexec based hibernation to load hibernated image, which is
from /proc/vmcore, a core dump file.
Signed-off-by: Huang Ying <ying.huang at intel.com>
---
kexec/kexec-elf-exec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/kexec/kexec-elf-exec.c
+++ b/kexec/kexec-elf-exec.c
@@ -20,7 +20,8 @@ int build_elf_exec_info(const char *buf,
if (result < 0) {
return result;
}
- if ((ehdr->e_type != ET_EXEC) && (ehdr->e_type != ET_DYN)) {
+ if ((ehdr->e_type != ET_EXEC) && (ehdr->e_type != ET_DYN) &&
+ (ehdr->e_type != ET_CORE)) {
/* not an ELF executable */
if (probe_debug) {
fprintf(stderr, "Not ELF type ET_EXEC or ET_DYN\n");
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.infradead.org/pipermail/kexec/attachments/20081029/93183072/attachment.bin
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic