kexec-tools-klibc: Fix building on x86_64 with binutils 2.41

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.

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Yoann Congal
2024-02-13 23:50:17 +01:00
committed by Khem Raj
parent c9ddb71d35
commit 6b2b1c6670
2 changed files with 98 additions and 1 deletions
@@ -15,7 +15,9 @@ SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git;branc
SRCREV = "5750980cdbbc33ef75bfba6660295b932376ce15"
BUILD_PATCHES = "file://0001-force-static-build.patch \
file://0002-Adjust-the-order-of-headers-to-fix-build-for-musl.patch"
file://0002-Adjust-the-order-of-headers-to-fix-build-for-musl.patch \
file://Fix-building-on-x86_64-with-binutils-2.41.patch \
"
KLIBC_PATCHES += " \
file://0003-kexec-elf-rel-use-our-elf.h.patch \