x86: use constant flags for section .init.rodata

LLVM 11 complains with:

<instantiation>:1:1: error: changed section flags for .init.rodata, expected: 0x2
.pushsection .init.rodata
^
<instantiation>:30:9: note: while in macro instantiation
        entrypoint 0
        ^
entry.S:979:9: note: while in macro instantiation
        .rept 256
        ^

And:

entry.S:1015:9: error: changed section flags for .init.rodata, expected: 0x2
        .section .init.rodata
        ^

Fix it by explicitly using the same flags and type in all the
instances.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
master commit: d2770047a2
master date: 2020-08-27 09:53:46 +0200
This commit is contained in:
Roger Pau Monné authored and Jan Beulich committed 2020-09-11 14:08:37 +02:00
1 parent 5482c2887d
commit 80dec06f6a
1 file changed
+2 -2
+2 -2
View File
@@ -967,7 +967,7 @@ GLOBAL(trap_nop)
GLOBAL(autogen_entrypoints)
/* pop into the .init.rodata section and record an entry point. */
.macro entrypoint ent
.pushsection .init.rodata
.pushsection .init.rodata, "a", @progbits
.quad \ent
.popsection
.endm
@@ -1012,5 +1012,5 @@ autogen_stubs: /* Automatically generated stubs. */
vec = vec + 1
.endr
.section .init.rodata
.section .init.rodata, "a", @progbits
.size autogen_entrypoints, . - autogen_entrypoints
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.