[PATCH] Fix building on x86_64 with binutils 2.41
Simon Horman
horms at kernel.org
Fri Feb 2 00:42:14 PST 2024
On Tue, Jan 30, 2024 at 04:14:31AM -0600, Michel Lind via B4 Relay wrote:
> From: Michel Lind <salimma at fedoraproject.org>
>
> Newer versions of the GNU assembler (observed with binutils 2.41) will
> complain about the ".arch i386" in files assembled with "as --64",
> with the message "Error: 64bit mode not supported on 'i386'".
>
> Fix by moving ".arch i386" below the relevant ".code32" directive, so
> that the assembler is no longer expecting 64-bit instructions to be used
> by the time that the ".arch i386" directive is encountered.
>
> Based on similar iPXE fix:
> https://github.com/ipxe/ipxe/commit/6ca597eee
>
> Signed-off-by: Michel Lind <michel at michel-slm.name>
Thanks Michael,
applied.
- Fix building on x86_64 with binutils 2.41
https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git/commit/?id=328de8e00e29
More information about the kexec
mailing list