Skip to content

Commit

Permalink
[PATCH] uclinux: use PER_LINUX_32BIT in binfmt_flat
Browse files Browse the repository at this point in the history
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 <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
pepsiman authored and Linus Torvalds committed Jun 26, 2006
1 parent 0914877 commit fcc18e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/binfmt_flat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand Down

0 comments on commit fcc18e8

Please sign in to comment.