• Al Viro's avatar
    [elf] unify regset and non-regset cases · e92edb85
    Al Viro authored
    The only real difference is in filling per-thread notes - getting
    the values of registers.   And this is the only part that is worth
    an ifdef - we don't need to duplicate the logics regarding gathering
    threads, filling other notes, etc.
    
    It would've been hard to do back when regset-based variant had been
    introduced, mostly due to sharing bits and pieces of helpers with
    aout coredumps.  As the result, too much had been duplicated and
    the copies had drifted away since then.  Now it can be done cleanly...
    Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
    e92edb85
binfmt_elf.c 57.5 KB