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:
parent
e23886a91d
commit
6495a04457
5 changed files with 1 additions and 47 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue