• R
    elf core dump: notes user_regset · 4206d3aa
    Roland McGrath 提交于
    This modifies the ELF core dump code under #ifdef CORE_DUMP_USE_REGSET.
    It changes nothing when this macro is not defined.  When it's #define'd
    by some arch header (e.g. asm/elf.h), the arch must support the
    user_regset (linux/regset.h) interface for reading thread state.
    
    This provides an alternate version of note segment writing that is based
    purely on the user_regset interfaces.  When CORE_DUMP_USE_REGSET is set,
    the arch need not define macros such as ELF_CORE_COPY_REGS and ELF_ARCH.
    All that information is taken from the user_regset data structures.
    The core dumps come out exactly the same if arch's definitions for its
    user_regset details are correct.
    Signed-off-by: NRoland McGrath <roland@redhat.com>
    Signed-off-by: NIngo Molnar <mingo@elte.hu>
    Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
    4206d3aa
binfmt_elf.c 57.0 KB