linux-user: Improve consistency checking in elf headers.
authorRichard Henderson <rth@twiddle.net>
Tue, 27 Jul 2010 17:25:34 +0000 (10:25 -0700)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Thu, 29 Jul 2010 06:32:28 +0000 (08:32 +0200)
commit1efcd0019b3833e456035f26642463fe3ce185e8
treeb96ffd72f01794a58d14e8b0dcccc32cbe6f4bac
parente9aeff3218255a72c179e63839a7779a27dd2e3f
linux-user: Improve consistency checking in elf headers.

Validate more fields of the elf header.  Extract those checks
into two common functions to be used in both load_elf_interp
and load_elf_binary.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
linux-user/elfload.c