]> xenbits.xensource.com Git - xen.git/commit
arm: Avoid using solaris syntax for .section directive
authorKhem Raj <raj.khem@gmail.com>
Thu, 3 Aug 2023 14:31:36 +0000 (16:31 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 3 Aug 2023 14:31:36 +0000 (16:31 +0200)
commit0a62b16489958715c20a2f6177a11a8ca3c4f7f3
treec1329813b61b971362cfa521e51e6a0a2d21cd4e
parent8da1697e2c180e59eaf6c29ad62bd0b78765cd22
arm: Avoid using solaris syntax for .section directive

Assembler from binutils 2.41 will rejects ([1], [2]) the following
syntax

.section "name", #alloc

for any other any target other than ELF SPARC. This means we can't use
it in the Arm code.

So switch to the GNU syntax

.section name [, "flags"[, @type]]

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=11601
[2] https://sourceware.org/binutils/docs-2.41/as.html#Section

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Reviewed-by: Michal Orzel <michal.orzel@amd.com>
[jgrall: Reword commit message]
Acked-by: Julien Grall <jgrall@amazon.com>
master commit: dfc490a3740bb7d6889939934afadcb58891fbce
master date: 2023-08-02 22:29:52 +0100
xen/arch/arm/arm32/proc-v7.S
xen/arch/arm/dtb.S