linux_user: elfload: Default ELF_MACHINE to ELF_ARCH
authorPeter Crosthwaite <crosthwaite.peter@gmail.com>
Sun, 19 Jul 2015 12:02:37 +0000 (05:02 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Sep 2015 10:04:43 +0000 (12:04 +0200)
commit75be901cdcd20acc724534e2dff58bc7b539292f
tree03eaf99f1102c0d800760ef02a0be581bedff112
parent6bde8fd69f874a107f04cea2695ebece849213c5
linux_user: elfload: Default ELF_MACHINE to ELF_ARCH

In most (but not all) cases, ELF_MACHINE and ELF_ARCH are safely the
same. Default ELF_MACHINE to ELF_ARCH. This makes defining ELF_MACHINE
optional for target-*/cpu.h when they are known to match.

Reviewed-by: Richard Henderson <rth@twiddle.net>
Acked-By: Riku Voipio <riku.voipio@linaro.org>
Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
linux-user/elfload.c