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)
commitf941d506e323aef33a711477ed347bf0dcce9896
tree12b001dfff752a32a16a891f1d7a89b240599926
parentb9cdbed85c78172747740701f3f885ac1fb0c8d7
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