[PATCH 0/3] makedumpfile, elf: distinguish ELF note types by ELF note names
Atsushi Kumagai
kumagai-atsushi at mxc.nes.nec.co.jp
Fri Mar 15 01:16:40 EDT 2013
Hello HATAYAMA-san,
On Mon, 04 Mar 2013 13:18:24 +0900
HATAYAMA Daisuke <d.hatayama at jp.fujitsu.com> wrote:
> In ELF, the same integers for two note type represent different
> meanings if the names they belong to are different. However,
> get_pt_note_info() doesn't distinguish note types by name space, due
> to which, for example, any new note type in "VMCOREINFO" name space is
> wrongly interpretted as NT_PRSTATUS or the unique note type in
> "VMCOREINFO" name space.
>
> This patch series makes get_pt_note_info() distinguish ELF note types
> by ELF note names along with cleanups related to this change.
Reviewed and applied.
Thanks
Atsushi Kumagai.
>
> For reference:
>
> Note Section
> http://www.sco.com/developers/gabi/latest/ch5.pheader.html#note_section
>
> type
>
> This word gives the interpretation of the descriptor. Each
> originator controls its own types; multiple interpretations of a
> single type value may exist. Thus, a program must recognize both
> the name and the type to recognize a descriptor. Types currently
> must be non-negative. The ABI does not define what descriptors
> mean.
>
> ---
>
> HATAYAMA Daisuke (3):
> elf: distinguish ELF note types by ELF note name space
> elf: swap checking order of VMCOREINFO and VMCOREINFO_XEN
> elf, sadump: move KEXEC macros from sadump_info.c to elf_info.h
>
>
> elf_info.c | 83 ++++++++++++++++++++++++++++++++++++++-------------------
> elf_info.h | 3 ++
> sadump_info.c | 4 +--
> 3 files changed, 59 insertions(+), 31 deletions(-)
>
> --
>
> Thanks.
> HATAYAMA, Daisuke
>
> _______________________________________________
> kexec mailing list
> kexec at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/kexec
More information about the kexec
mailing list