diff options
Diffstat (limited to 'recipes-extended/xen/files/0001-arm32-Avoid-using-solaris-syntax-for-.section-direct.patch')
-rw-r--r-- | recipes-extended/xen/files/0001-arm32-Avoid-using-solaris-syntax-for-.section-direct.patch | 70 |
1 files changed, 0 insertions, 70 deletions
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 deleted file mode 100644 index a4038dda..00000000 --- a/recipes-extended/xen/files/0001-arm32-Avoid-using-solaris-syntax-for-.section-direct.patch +++ /dev/null | |||
@@ -1,70 +0,0 @@ | |||
1 | From dfc490a3740bb7d6889939934afadcb58891fbce Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 1 Aug 2023 10:49:30 -0700 | ||
4 | Subject: [PATCH] arm: Avoid using solaris syntax for .section directive | ||
5 | |||
6 | Assembler from binutils 2.41 will rejects ([1], [2]) the following | ||
7 | syntax | ||
8 | |||
9 | .section "name", #alloc | ||
10 | |||
11 | for any other any target other than ELF SPARC. This means we can't use | ||
12 | it in the Arm code. | ||
13 | |||
14 | So switch to the GNU syntax | ||
15 | |||
16 | .section name [, "flags"[, @type]] | ||
17 | |||
18 | [1] https://sourceware.org/bugzilla/show_bug.cgi?id=11601 | ||
19 | [2] https://sourceware.org/binutils/docs-2.41/as.html#Section | ||
20 | |||
21 | Upstream-Status: Backport [https://github.com/xen-project/xen/commit/dfc490a3740bb7d6889939934afadcb58891fbce] | ||
22 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
23 | Reviewed-by: Michal Orzel <michal.orzel@amd.com> | ||
24 | [jgrall: Reword commit message] | ||
25 | Acked-by: Julien Grall <jgrall@amazon.com> | ||
26 | --- | ||
27 | xen/arch/arm/arm32/proc-v7.S | 6 +++--- | ||
28 | xen/arch/arm/dtb.S | 2 +- | ||
29 | 2 files changed, 4 insertions(+), 4 deletions(-) | ||
30 | |||
31 | diff --git a/xen/arch/arm/arm32/proc-v7.S b/xen/arch/arm/arm32/proc-v7.S | ||
32 | index c90a31d80fc5..6d3d19b87354 100644 | ||
33 | --- a/xen/arch/arm/arm32/proc-v7.S | ||
34 | +++ b/xen/arch/arm/arm32/proc-v7.S | ||
35 | @@ -29,7 +29,7 @@ brahma15mp_init: | ||
36 | mcr CP32(r0, ACTLR) | ||
37 | mov pc, lr | ||
38 | |||
39 | - .section ".proc.info", #alloc | ||
40 | + .section .proc.info, "a" | ||
41 | .type __v7_ca15mp_proc_info, #object | ||
42 | __v7_ca15mp_proc_info: | ||
43 | .long 0x410FC0F0 /* Cortex-A15 */ | ||
44 | @@ -38,7 +38,7 @@ __v7_ca15mp_proc_info: | ||
45 | .long caxx_processor | ||
46 | .size __v7_ca15mp_proc_info, . - __v7_ca15mp_proc_info | ||
47 | |||
48 | - .section ".proc.info", #alloc | ||
49 | + .section .proc.info, "a" | ||
50 | .type __v7_ca7mp_proc_info, #object | ||
51 | __v7_ca7mp_proc_info: | ||
52 | .long 0x410FC070 /* Cortex-A7 */ | ||
53 | @@ -47,7 +47,7 @@ __v7_ca7mp_proc_info: | ||
54 | .long caxx_processor | ||
55 | .size __v7_ca7mp_proc_info, . - __v7_ca7mp_proc_info | ||
56 | |||
57 | - .section ".proc.info", #alloc | ||
58 | + .section .proc.info, "a" | ||
59 | .type __v7_brahma15mp_proc_info, #object | ||
60 | __v7_brahma15mp_proc_info: | ||
61 | .long 0x420F00F0 /* Broadcom Brahma-B15 */ | ||
62 | diff --git a/xen/arch/arm/dtb.S b/xen/arch/arm/dtb.S | ||
63 | index c39f3a095c58..386f83ba649e 100644 | ||
64 | --- a/xen/arch/arm/dtb.S | ||
65 | +++ b/xen/arch/arm/dtb.S | ||
66 | @@ -1,3 +1,3 @@ | ||
67 | - .section .dtb,#alloc | ||
68 | + .section .dtb, "a" | ||
69 | GLOBAL(_sdtb) | ||
70 | .incbin CONFIG_DTB_FILE | ||