From: Khem Raj <raj.khem@gmail.com>
To: meta-virtualization@lists.yoctoproject.org
Cc: Khem Raj <raj.khem@gmail.com>,
Alexandre Belloni <alexandre.belloni@bootlin.com>
Subject: [meta-virtualization][PATCH] xen: Fix build with gas/2.41
Date: Mon, 31 Jul 2023 17:34:06 -0700 [thread overview]
Message-ID: <20230801003406.605140-1-raj.khem@gmail.com> (raw)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
...g-solaris-syntax-for-.section-direct.patch | 62 +++++++++++++++++++
recipes-extended/xen/xen_4.17.bb | 4 ++
2 files changed, 66 insertions(+)
create mode 100644 recipes-extended/xen/files/0001-arm32-Avoid-using-solaris-syntax-for-.section-direct.patch
diff --git a/recipes-extended/xen/files/0001-arm32-Avoid-using-solaris-syntax-for-.section-direct.patch b/recipes-extended/xen/files/0001-arm32-Avoid-using-solaris-syntax-for-.section-direct.patch
new file mode 100644
index 0000000..c73bb27
--- /dev/null
+++ b/recipes-extended/xen/files/0001-arm32-Avoid-using-solaris-syntax-for-.section-direct.patch
@@ -0,0 +1,62 @@
+From 9add6f9aced42a76f6a2c124754bef6fde56fa05 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+To: xen-devel@lists.xenproject.org
+Cc: Stefano Stabellini <sstabellini@kernel.org>
+Cc: Julien Grall <julien@xen.org>
+Cc: Bertrand Marquis <bertrand.marquis@arm.com>
+Cc: Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>
+Date: Mon, 31 Jul 2023 17:01:32 -0700
+Subject: [PATCH] arm32: Avoid using solaris syntax for .section directive
+
+Assembler from binutils 2.41 rejects this syntax
+
+.section "name"[, flags...]
+
+where flags could be #alloc, #write, #execstr
+Switch to using ELF syntax
+
+.section name[, "flags"[, @type]]
+
+[1] https://ftp.gnu.org/old-gnu/Manuals/gas-2.9.1/html_chapter/as_7.html#SEC119
+
+Upstream-Status: Submitted [by email to xen-devel@lists.xenproject.org and maintainers]
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ xen/arch/arm/arm32/proc-v7.S | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/xen/arch/arm/arm32/proc-v7.S b/xen/arch/arm/arm32/proc-v7.S
+index c90a31d80f..6d3d19b873 100644
+--- a/xen/arch/arm/arm32/proc-v7.S
++++ b/xen/arch/arm/arm32/proc-v7.S
+@@ -29,7 +29,7 @@ brahma15mp_init:
+ mcr CP32(r0, ACTLR)
+ mov pc, lr
+
+- .section ".proc.info", #alloc
++ .section .proc.info, "a"
+ .type __v7_ca15mp_proc_info, #object
+ __v7_ca15mp_proc_info:
+ .long 0x410FC0F0 /* Cortex-A15 */
+@@ -38,7 +38,7 @@ __v7_ca15mp_proc_info:
+ .long caxx_processor
+ .size __v7_ca15mp_proc_info, . - __v7_ca15mp_proc_info
+
+- .section ".proc.info", #alloc
++ .section .proc.info, "a"
+ .type __v7_ca7mp_proc_info, #object
+ __v7_ca7mp_proc_info:
+ .long 0x410FC070 /* Cortex-A7 */
+@@ -47,7 +47,7 @@ __v7_ca7mp_proc_info:
+ .long caxx_processor
+ .size __v7_ca7mp_proc_info, . - __v7_ca7mp_proc_info
+
+- .section ".proc.info", #alloc
++ .section .proc.info, "a"
+ .type __v7_brahma15mp_proc_info, #object
+ __v7_brahma15mp_proc_info:
+ .long 0x420F00F0 /* Broadcom Brahma-B15 */
+--
+2.41.0
+
diff --git a/recipes-extended/xen/xen_4.17.bb b/recipes-extended/xen/xen_4.17.bb
index 9da1b19..bd8f55b 100644
--- a/recipes-extended/xen/xen_4.17.bb
+++ b/recipes-extended/xen/xen_4.17.bb
@@ -7,6 +7,7 @@ XEN_BRANCH ?= "stable-${XEN_REL}"
SRC_URI = " \
git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \
file://0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch \
+ file://0001-arm32-Avoid-using-solaris-syntax-for-.section-direct.patch \
"
LIC_FILES_CHKSUM ?= "file://COPYING;md5=d1a1e216f80b6d8da95fec897d0dbec9"
@@ -17,3 +18,6 @@ S = "${WORKDIR}/git"
require xen.inc
require xen-hypervisor.inc
+
+TOOLCHAIN = "gcc"
+LDFLAGS:remove = "-fuse-ld=lld"
--
2.41.0
next reply other threads:[~2023-08-01 0:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-01 0:34 Khem Raj [this message]
2023-08-01 18:43 ` [meta-virtualization][PATCH] xen: Fix build with gas/2.41 Bruce Ashfield
2023-08-01 19:46 ` Khem Raj
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230801003406.605140-1-raj.khem@gmail.com \
--to=raj.khem@gmail.com \
--cc=alexandre.belloni@bootlin.com \
--cc=meta-virtualization@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).