Commit 790756c7 authored by Nick Desaulniers's avatar Nick Desaulniers Committed by Russell King

ARM: 8933/1: replace Sun/Solaris style flag on section directive

It looks like a section directive was using "Solaris style" to declare
the section flags. Replace this with the GNU style so that Clang's
integrated assembler can assemble this directive.

The modified instances were identified via:
$ ag \.section | grep #

Link: https://ftp.gnu.org/old-gnu/Manuals/gas-2.9.1/html_chapter/as_7.html#SEC119
Link: https://github.com/ClangBuiltLinux/linux/issues/744
Link: https://bugs.llvm.org/show_bug.cgi?id=43759
Link: https://reviews.llvm.org/D69296Acked-by: default avatarNicolas Pitre <nico@fluxnic.net>
Reviewed-by: default avatarArd Biesheuvel <ardb@kernel.org>
Reviewed-by: default avatarStefan Agner <stefan@agner.ch>
Signed-off-by: default avatarNick Desaulniers <ndesaulniers@google.com>
Suggested-by: default avatarFangrui Song <maskray@google.com>
Suggested-by: default avatarJian Cai <jiancai@google.com>
Suggested-by: default avatarPeter Smith <peter.smith@linaro.org>
Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
parent 74d06efb
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* size immediately following the kernel, we could build this into * size immediately following the kernel, we could build this into
* a binary blob, and concatenate the zImage using the cat command. * a binary blob, and concatenate the zImage using the cat command.
*/ */
.section .start,#alloc,#execinstr .section .start, "ax"
.type _start, #function .type _start, #function
.globl _start .globl _start
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* Author: Nicolas Pitre * Author: Nicolas Pitre
*/ */
.section ".start", #alloc, #execinstr .section ".start", "ax"
mrc p15, 0, r0, c1, c0, 0 @ read control reg mrc p15, 0, r0, c1, c0, 0 @ read control reg
orr r0, r0, #(1 << 7) @ enable big endian mode orr r0, r0, #(1 << 7) @ enable big endian mode
......
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
#endif #endif
.endm .endm
.section ".start", #alloc, #execinstr .section ".start", "ax"
/* /*
* sort out different calling conventions * sort out different calling conventions
*/ */
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: GPL-2.0 */
.section .piggydata,#alloc .section .piggydata, "a"
.globl input_data .globl input_data
input_data: input_data:
.incbin "arch/arm/boot/compressed/piggy_data" .incbin "arch/arm/boot/compressed/piggy_data"
......
...@@ -491,7 +491,7 @@ cpu_arm1020_name: ...@@ -491,7 +491,7 @@ cpu_arm1020_name:
.align .align
.section ".proc.info.init", #alloc .section ".proc.info.init", "a"
.type __arm1020_proc_info,#object .type __arm1020_proc_info,#object
__arm1020_proc_info: __arm1020_proc_info:
......
...@@ -449,7 +449,7 @@ arm1020e_crval: ...@@ -449,7 +449,7 @@ arm1020e_crval:
.align .align
.section ".proc.info.init", #alloc .section ".proc.info.init", "a"
.type __arm1020e_proc_info,#object .type __arm1020e_proc_info,#object
__arm1020e_proc_info: __arm1020e_proc_info:
......
...@@ -443,7 +443,7 @@ arm1022_crval: ...@@ -443,7 +443,7 @@ arm1022_crval:
.align .align
.section ".proc.info.init", #alloc .section ".proc.info.init", "a"
.type __arm1022_proc_info,#object .type __arm1022_proc_info,#object
__arm1022_proc_info: __arm1022_proc_info:
......
...@@ -437,7 +437,7 @@ arm1026_crval: ...@@ -437,7 +437,7 @@ arm1026_crval:
string cpu_arm1026_name, "ARM1026EJ-S" string cpu_arm1026_name, "ARM1026EJ-S"
.align .align
.section ".proc.info.init", #alloc .section ".proc.info.init", "a"
.type __arm1026_proc_info,#object .type __arm1026_proc_info,#object
__arm1026_proc_info: __arm1026_proc_info:
......
...@@ -172,7 +172,7 @@ arm720_crval: ...@@ -172,7 +172,7 @@ arm720_crval:
* See <asm/procinfo.h> for a definition of this structure. * See <asm/procinfo.h> for a definition of this structure.
*/ */
.section ".proc.info.init", #alloc .section ".proc.info.init", "a"
.macro arm720_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, cpu_flush:req .macro arm720_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, cpu_flush:req
.type __\name\()_proc_info,#object .type __\name\()_proc_info,#object
......
...@@ -128,7 +128,7 @@ __arm740_setup: ...@@ -128,7 +128,7 @@ __arm740_setup:
.align .align
.section ".proc.info.init", #alloc .section ".proc.info.init", "a"
.type __arm740_proc_info,#object .type __arm740_proc_info,#object
__arm740_proc_info: __arm740_proc_info:
.long 0x41807400 .long 0x41807400
......
...@@ -72,7 +72,7 @@ __arm7tdmi_setup: ...@@ -72,7 +72,7 @@ __arm7tdmi_setup:
.align .align
.section ".proc.info.init", #alloc .section ".proc.info.init", "a"
.macro arm7tdmi_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, \ .macro arm7tdmi_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, \
extra_hwcaps=0 extra_hwcaps=0
......
...@@ -434,7 +434,7 @@ arm920_crval: ...@@ -434,7 +434,7 @@ arm920_crval:
.align .align
.section ".proc.info.init", #alloc .section ".proc.info.init", "a"
.type __arm920_proc_info,#object .type __arm920_proc_info,#object
__arm920_proc_info: __arm920_proc_info:
......
...@@ -412,7 +412,7 @@ arm922_crval: ...@@ -412,7 +412,7 @@ arm922_crval:
.align .align
.section ".proc.info.init", #alloc .section ".proc.info.init", "a"
.type __arm922_proc_info,#object .type __arm922_proc_info,#object
__arm922_proc_info: __arm922_proc_info:
......
...@@ -477,7 +477,7 @@ arm925_crval: ...@@ -477,7 +477,7 @@ arm925_crval:
.align .align
.section ".proc.info.init", #alloc .section ".proc.info.init", "a"
.macro arm925_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, cache .macro arm925_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, cache
.type __\name\()_proc_info,#object .type __\name\()_proc_info,#object
......
...@@ -460,7 +460,7 @@ arm926_crval: ...@@ -460,7 +460,7 @@ arm926_crval:
.align .align
.section ".proc.info.init", #alloc .section ".proc.info.init", "a"
.type __arm926_proc_info,#object .type __arm926_proc_info,#object
__arm926_proc_info: __arm926_proc_info:
......
...@@ -340,7 +340,7 @@ __arm940_setup: ...@@ -340,7 +340,7 @@ __arm940_setup:
.align .align
.section ".proc.info.init", #alloc .section ".proc.info.init", "a"
.type __arm940_proc_info,#object .type __arm940_proc_info,#object
__arm940_proc_info: __arm940_proc_info:
......
...@@ -395,7 +395,7 @@ __arm946_setup: ...@@ -395,7 +395,7 @@ __arm946_setup:
.align .align
.section ".proc.info.init", #alloc .section ".proc.info.init", "a"
.type __arm946_proc_info,#object .type __arm946_proc_info,#object
__arm946_proc_info: __arm946_proc_info:
.long 0x41009460 .long 0x41009460
......
...@@ -66,7 +66,7 @@ __arm9tdmi_setup: ...@@ -66,7 +66,7 @@ __arm9tdmi_setup:
.align .align
.section ".proc.info.init", #alloc .section ".proc.info.init", "a"
.macro arm9tdmi_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req .macro arm9tdmi_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req
.type __\name\()_proc_info, #object .type __\name\()_proc_info, #object
......
...@@ -185,7 +185,7 @@ fa526_cr1_set: ...@@ -185,7 +185,7 @@ fa526_cr1_set:
.align .align
.section ".proc.info.init", #alloc .section ".proc.info.init", "a"
.type __fa526_proc_info,#object .type __fa526_proc_info,#object
__fa526_proc_info: __fa526_proc_info:
......
...@@ -571,7 +571,7 @@ feroceon_crval: ...@@ -571,7 +571,7 @@ feroceon_crval:
.align .align
.section ".proc.info.init", #alloc .section ".proc.info.init", "a"
.macro feroceon_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, cache:req .macro feroceon_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, cache:req
.type __\name\()_proc_info,#object .type __\name\()_proc_info,#object
......
...@@ -416,7 +416,7 @@ mohawk_crval: ...@@ -416,7 +416,7 @@ mohawk_crval:
.align .align
.section ".proc.info.init", #alloc .section ".proc.info.init", "a"
.type __88sv331x_proc_info,#object .type __88sv331x_proc_info,#object
__88sv331x_proc_info: __88sv331x_proc_info:
......
...@@ -196,7 +196,7 @@ sa110_crval: ...@@ -196,7 +196,7 @@ sa110_crval:
.align .align
.section ".proc.info.init", #alloc .section ".proc.info.init", "a"
.type __sa110_proc_info,#object .type __sa110_proc_info,#object
__sa110_proc_info: __sa110_proc_info:
......
...@@ -239,7 +239,7 @@ sa1100_crval: ...@@ -239,7 +239,7 @@ sa1100_crval:
.align .align
.section ".proc.info.init", #alloc .section ".proc.info.init", "a"
.macro sa1100_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req .macro sa1100_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req
.type __\name\()_proc_info,#object .type __\name\()_proc_info,#object
......
...@@ -261,7 +261,7 @@ v6_crval: ...@@ -261,7 +261,7 @@ v6_crval:
string cpu_elf_name, "v6" string cpu_elf_name, "v6"
.align .align
.section ".proc.info.init", #alloc .section ".proc.info.init", "a"
/* /*
* Match any ARMv6 processor core. * Match any ARMv6 processor core.
......
...@@ -644,7 +644,7 @@ __v7_setup_stack: ...@@ -644,7 +644,7 @@ __v7_setup_stack:
string cpu_elf_name, "v7" string cpu_elf_name, "v7"
.align .align
.section ".proc.info.init", #alloc .section ".proc.info.init", "a"
/* /*
* Standard v7 proc info content * Standard v7 proc info content
......
...@@ -93,7 +93,7 @@ ENTRY(cpu_cm7_proc_fin) ...@@ -93,7 +93,7 @@ ENTRY(cpu_cm7_proc_fin)
ret lr ret lr
ENDPROC(cpu_cm7_proc_fin) ENDPROC(cpu_cm7_proc_fin)
.section ".init.text", #alloc, #execinstr .section ".init.text", "ax"
__v7m_cm7_setup: __v7m_cm7_setup:
mov r8, #(V7M_SCB_CCR_DC | V7M_SCB_CCR_IC| V7M_SCB_CCR_BP) mov r8, #(V7M_SCB_CCR_DC | V7M_SCB_CCR_IC| V7M_SCB_CCR_BP)
...@@ -177,7 +177,7 @@ ENDPROC(__v7m_setup) ...@@ -177,7 +177,7 @@ ENDPROC(__v7m_setup)
string cpu_elf_name "v7m" string cpu_elf_name "v7m"
string cpu_v7m_name "ARMv7-M" string cpu_v7m_name "ARMv7-M"
.section ".proc.info.init", #alloc .section ".proc.info.init", "a"
.macro __v7m_proc name, initfunc, cache_fns = nop_cache_fns, hwcaps = 0, proc_fns = v7m_processor_functions .macro __v7m_proc name, initfunc, cache_fns = nop_cache_fns, hwcaps = 0, proc_fns = v7m_processor_functions
.long 0 /* proc_info_list.__cpu_mm_mmu_flags */ .long 0 /* proc_info_list.__cpu_mm_mmu_flags */
......
...@@ -496,7 +496,7 @@ xsc3_crval: ...@@ -496,7 +496,7 @@ xsc3_crval:
.align .align
.section ".proc.info.init", #alloc .section ".proc.info.init", "a"
.macro xsc3_proc_info name:req, cpu_val:req, cpu_mask:req .macro xsc3_proc_info name:req, cpu_val:req, cpu_mask:req
.type __\name\()_proc_info,#object .type __\name\()_proc_info,#object
......
...@@ -610,7 +610,7 @@ xscale_crval: ...@@ -610,7 +610,7 @@ xscale_crval:
.align .align
.section ".proc.info.init", #alloc .section ".proc.info.init", "a"
.macro xscale_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, cache .macro xscale_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, cache
.type __\name\()_proc_info,#object .type __\name\()_proc_info,#object
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment