[elf] unify regset and non-regset cases
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 5 Sep 2022 04:41:05 +0000 (00:41 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 25 Nov 2022 04:26:04 +0000 (23:26 -0500)
commite92edb85d87e9f8c8bead9cdb7cb2da4b51fd7f8
treef4c2a60ecea3f6320c2c30161782ec02cbbef955
parente961d370fc7b806a0d668413a9f1b006760eaee6
[elf] unify regset and non-regset cases

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: Al Viro <viro@zeniv.linux.org.uk>
fs/binfmt_elf.c