Commit fcc18e83 authored by Malcolm Parsons's avatar Malcolm Parsons Committed by Linus Torvalds

[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: default avatarGreg Ungerer <gerg@uclinux.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 09148777
...@@ -510,7 +510,7 @@ static int load_flat_file(struct linux_binprm * bprm, ...@@ -510,7 +510,7 @@ static int load_flat_file(struct linux_binprm * bprm,
} }
/* OK, This is the point of no return */ /* OK, This is the point of no return */
set_personality(PER_LINUX); set_personality(PER_LINUX_32BIT);
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment