linux-user: Extract load_elf_image from load_elf_interp.
authorRichard Henderson <rth@twiddle.net>
Tue, 27 Jul 2010 17:25:37 +0000 (10:25 -0700)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Thu, 29 Jul 2010 06:32:28 +0000 (08:32 +0200)
commitb9cdbed85c78172747740701f3f885ac1fb0c8d7
tree9a19fb25a9515d37e5544acca62ebde72bc79a0c
parent9a956a7a9903f763f0f6dd2fe206f6ad59073b45
linux-user: Extract load_elf_image from load_elf_interp.

Moving toward a single copy of the elf binary loading code.
Fill in the details of the loaded image into a struct image_info.

Adjust create_elf_tables to read from such structures instead
of from a collection of passed arguments.  Don't return error
values from load_elf_interp; always exit(-1) with a message to
stderr.  Collect elf_interpreter handling in load_elf_binary
to a common spot.

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