[PATCH 0/3] makedumpfile, elf: distinguish ELF note types by ELF note names

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

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



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux