binfmt_flat: update libraries' data segment pointer with userspace accessors
authorNicolas Pitre <nicolas.pitre@linaro.org>
Sun, 24 Jul 2016 15:30:24 +0000 (11:30 -0400)
committerGreg Ungerer <gerg@linux-m68k.org>
Thu, 28 Jul 2016 03:29:11 +0000 (13:29 +1000)
commitaf521f92dcf636c59330233a61cb689d0383c291
treef99e0a68e37cc4d2d70f4f8b62f68cf9374626cb
parent467aa1465a7b9f0bd1a23c83bff8c38e3c3e660e
binfmt_flat: update libraries' data segment pointer with userspace accessors

This is needed on systems with a MMU.  This also gets rid of the
strangest C code I've seen lateli i.e. an integer indexed with a
pointer value within square brackets. That really looked backwards.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Reviewed-by: Greg Ungerer <gerg@linux-m68k.org>
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
fs/binfmt_flat.c