Re: [PATCH] vmcore: replace Elf64_Ehdr/Elf32_Ehdr with elfhdr

2015-09-17 Thread Minfei Huang
On 09/17/15 at 05:32pm, yjin wrote: > > On 2015年09月16日 18:39, Minfei Huang wrote: > >On 09/16/15 at 10:58am, yanjiang@windriver.com wrote: > >>From: Yanjiang Jin > >> > >>Function parse_crash_elf_headers() reads e_ident[EI_CLASS] then decides to > >>call parse_crash_elf64_headers() or parse_c

Re: [PATCH] vmcore: replace Elf64_Ehdr/Elf32_Ehdr with elfhdr

2015-09-17 Thread yjin
On 2015年09月16日 18:39, Minfei Huang wrote: On 09/16/15 at 10:58am, yanjiang@windriver.com wrote: From: Yanjiang Jin Function parse_crash_elf_headers() reads e_ident[EI_CLASS] then decides to call parse_crash_elf64_headers() or parse_crash_elf32_headers(). But this happens in run time, not

Re: [PATCH] vmcore: replace Elf64_Ehdr/Elf32_Ehdr with elfhdr

2015-09-16 Thread Minfei Huang
Ccing kexec maillist. On 09/16/15 at 06:39pm, Minfei Huang wrote: > On 09/16/15 at 10:58am, yanjiang@windriver.com wrote: > > From: Yanjiang Jin > > > > Function parse_crash_elf_headers() reads e_ident[EI_CLASS] then decides to > > call parse_crash_elf64_headers() or parse_crash_elf32_header

Re: [PATCH] vmcore: replace Elf64_Ehdr/Elf32_Ehdr with elfhdr

2015-09-16 Thread Minfei Huang
On 09/16/15 at 10:58am, yanjiang@windriver.com wrote: > From: Yanjiang Jin > > Function parse_crash_elf_headers() reads e_ident[EI_CLASS] then decides to > call parse_crash_elf64_headers() or parse_crash_elf32_headers(). > But this happens in run time, not compile time. So compiler will repor

Re: [PATCH] vmcore: replace Elf64_Ehdr/Elf32_Ehdr with elfhdr

2015-09-16 Thread Dave Young
Cc kexec list. On 09/16/15 at 10:58am, yanjiang@windriver.com wrote: > From: Yanjiang Jin > > Function parse_crash_elf_headers() reads e_ident[EI_CLASS] then decides to > call parse_crash_elf64_headers() or parse_crash_elf32_headers(). > But this happens in run time, not compile time. So com