From: Malcolm Parsons Date: Mon, 26 Jun 2006 01:49:41 +0000 (+1000) Subject: [PATCH] uclinux: use PER_LINUX_32BIT in binfmt_flat X-Git-Tag: v2.6.18-rc1~830 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=fcc18e83e1f6fd9fa6b333735bf0fcd530655511;p=linux-2.6-omap-h63xx.git [PATCH] uclinux: use PER_LINUX_32BIT in binfmt_flat binfmt_flat.c calls set_personality with PER_LINUX as the personality. On the arm architecture this results in the program running in 26bit usermode. PER_LINUX_32BIT should be used instead. This doesn't affect other architectures that use binfmt_flat. Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds --- diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c index b1c902e319c..c94d52eafd1 100644 --- a/fs/binfmt_flat.c +++ b/fs/binfmt_flat.c @@ -510,7 +510,7 @@ static int load_flat_file(struct linux_binprm * bprm, } /* OK, This is the point of no return */ - set_personality(PER_LINUX); + set_personality(PER_LINUX_32BIT); } /*