OSDN Git Service

linux-user: Re-use load_elf_image for the main binary.
authorRichard Henderson <rth@twiddle.net>
Tue, 27 Jul 2010 17:25:38 +0000 (10:25 -0700)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Thu, 29 Jul 2010 06:32:28 +0000 (08:32 +0200)
commitbf858897b76926b56e948dbe7a1a491b68dccda7
tree12b001dfff752a32a16a891f1d7a89b240599926
parent8e62a71738bcbefdbb76435d94be5d455b9ee192
linux-user: Re-use load_elf_image for the main binary.

This requires moving the PT_INTERP extraction and GUEST_BASE
handling into load_elf_image.  Key this off a non-null pointer
argument to receive the interpreter name.

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