Re: [PATCH v2] x86_64: Add "-m elf_i386" when linking i386 object files.

2019-01-11 Thread Nick Desaulniers
On Fri, Jan 11, 2019 at 11:14 AM Tri Vo wrote: > > From: George Rimar > > Linux kernel uses OUTPUT_FORMAT in it's linker scripts. Most of the time > -m option is passed to the linker with correct architecture, but > sometimes (at least for x86_64) the -m option contradicts OUTPUT_FORMAT > directi

[PATCH v2] x86_64: Add "-m elf_i386" when linking i386 object files.

2019-01-11 Thread Tri Vo
From: George Rimar Linux kernel uses OUTPUT_FORMAT in it's linker scripts. Most of the time -m option is passed to the linker with correct architecture, but sometimes (at least for x86_64) the -m option contradicts OUTPUT_FORMAT directive. Specifically, arch/x86/boot and arch/x86/realmode/rm modu