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