mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
linux-user: Remove ELFLOAD32.
The ABI-specific types used by linux_binprm and image_info are different after forcing TARGET_ABI32 on. Which means that the parameters that load_elf_binary_multi sees are not those that loader_exec passed. This is inherently broken and is more trouble than it's worth fixing. Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
committed by
Blue Swirl
parent
e23886a91d
commit
6495a04457
@@ -184,11 +184,7 @@ int loader_exec(const char * filename, char ** argv, char ** envp,
|
||||
&& bprm->buf[1] == 'E'
|
||||
&& bprm->buf[2] == 'L'
|
||||
&& bprm->buf[3] == 'F') {
|
||||
#ifndef TARGET_HAS_ELFLOAD32
|
||||
retval = load_elf_binary(bprm,regs,infop);
|
||||
#else
|
||||
retval = load_elf_binary_multi(bprm, regs, infop);
|
||||
#endif
|
||||
retval = load_elf_binary(bprm, regs, infop);
|
||||
#if defined(TARGET_HAS_BFLT)
|
||||
} else if (bprm->buf[0] == 'b'
|
||||
&& bprm->buf[1] == 'F'
|
||||
|
||||
Reference in New Issue
Block a user