Re: [PATCH v2 5/9] x86: elf: Use e_machine to select start_thread for x32

2020-10-01 Thread Andy Lutomirski
On Thu, Oct 1, 2020 at 1:59 PM Gabriel Krisman Bertazi wrote: > > Since TIF_X32 is going away, avoid using it to find the ELF type on > compat_start_thread > > According to SysV AMD64 ABI Draft, an AMD64 ELF object using ILP32 must > have ELFCLASS32 with (E_MACHINE == EM_X86_64), so use that ELF f

[PATCH v2 5/9] x86: elf: Use e_machine to select start_thread for x32

2020-10-01 Thread Gabriel Krisman Bertazi
Since TIF_X32 is going away, avoid using it to find the ELF type on compat_start_thread According to SysV AMD64 ABI Draft, an AMD64 ELF object using ILP32 must have ELFCLASS32 with (E_MACHINE == EM_X86_64), so use that ELF field to differentiate a x32 object from a IA32 object when executing start