ARM: 8933/1: replace Sun/Solaris style flag on section directive
authorNick Desaulniers <ndesaulniers@google.com>
Mon, 4 Nov 2019 18:31:45 +0000 (19:31 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Fri, 15 Nov 2019 22:21:19 +0000 (22:21 +0000)
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/D69296
Acked-by: Nicolas Pitre <nico@fluxnic.net>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Suggested-by: Fangrui Song <maskray@google.com>
Suggested-by: Jian Cai <jiancai@google.com>
Suggested-by: Peter Smith <peter.smith@linaro.org>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
28 files changed:
arch/arm/boot/bootp/init.S
arch/arm/boot/compressed/big-endian.S
arch/arm/boot/compressed/head.S
arch/arm/boot/compressed/piggy.S
arch/arm/mm/proc-arm1020.S
arch/arm/mm/proc-arm1020e.S
arch/arm/mm/proc-arm1022.S
arch/arm/mm/proc-arm1026.S
arch/arm/mm/proc-arm720.S
arch/arm/mm/proc-arm740.S
arch/arm/mm/proc-arm7tdmi.S
arch/arm/mm/proc-arm920.S
arch/arm/mm/proc-arm922.S
arch/arm/mm/proc-arm925.S
arch/arm/mm/proc-arm926.S
arch/arm/mm/proc-arm940.S
arch/arm/mm/proc-arm946.S
arch/arm/mm/proc-arm9tdmi.S
arch/arm/mm/proc-fa526.S
arch/arm/mm/proc-feroceon.S
arch/arm/mm/proc-mohawk.S
arch/arm/mm/proc-sa110.S
arch/arm/mm/proc-sa1100.S
arch/arm/mm/proc-v6.S
arch/arm/mm/proc-v7.S
arch/arm/mm/proc-v7m.S
arch/arm/mm/proc-xsc3.S
arch/arm/mm/proc-xscale.S

index 5c476bd2b4ce9c9bf9c7a37b684e20ddf46135f3..b562da2f704088339e033946e22858d807cc40c4 100644 (file)
@@ -13,7 +13,7 @@
  *  size immediately following the kernel, we could build this into
  *  a binary blob, and concatenate the zImage using the cat command.
  */
-               .section .start,#alloc,#execinstr
+               .section .start, "ax"
                .type   _start, #function
                .globl  _start
 
index 88e2a88d324b2535a6610c1a914e81ef3a010b8b..0e092c36da2f2791d564b5c4aa4aa6dccb859dc7 100644 (file)
@@ -6,7 +6,7 @@
  *  Author: Nicolas Pitre
  */
 
-       .section ".start", #alloc, #execinstr
+       .section ".start", "ax"
 
        mrc     p15, 0, r0, c1, c0, 0   @ read control reg
        orr     r0, r0, #(1 << 7)       @ enable big endian mode
index ae70754d003daab563cf07e16e8fb9713e645023..ead21e5f2b8032cb4e39faf1620260f5cd6fa2b4 100644 (file)
 #endif
                .endm
 
-               .section ".start", #alloc, #execinstr
+               .section ".start", "ax"
 /*
  * sort out different calling conventions
  */
index 0284f84dcf38049f643c144d4f86dd76df88fabe..27577644ee721a861b87e2f68e48ebb3aaff2cf3 100644 (file)
@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
-       .section .piggydata,#alloc
+       .section .piggydata, "a"
        .globl  input_data
 input_data:
        .incbin "arch/arm/boot/compressed/piggy_data"
index 4fa5371bc6624ce63be9963edd268280662d1566..2785da387c9104fad1a3b8b88ad44fad1a2d02ab 100644 (file)
@@ -491,7 +491,7 @@ cpu_arm1020_name:
 
        .align
 
-       .section ".proc.info.init", #alloc
+       .section ".proc.info.init", "a"
 
        .type   __arm1020_proc_info,#object
 __arm1020_proc_info:
index 5d8a8339e09a4ea7c90093f007a37a3f54bba99e..e9ea237ed7852554e4217ac9c4eaf7131d5e3eef 100644 (file)
@@ -449,7 +449,7 @@ arm1020e_crval:
 
        .align
 
-       .section ".proc.info.init", #alloc
+       .section ".proc.info.init", "a"
 
        .type   __arm1020e_proc_info,#object
 __arm1020e_proc_info:
index b3dd95c345e482f20ac898f1610bdcb2ceb6a815..920c279e7879d8f2388438f46d2c8563c5e7a7ae 100644 (file)
@@ -443,7 +443,7 @@ arm1022_crval:
 
        .align
 
-       .section ".proc.info.init", #alloc
+       .section ".proc.info.init", "a"
 
        .type   __arm1022_proc_info,#object
 __arm1022_proc_info:
index e927187157d7d577e0bff82d872ca7758ec23532..0bdf25a95b107db9da12be7215c2818608586f94 100644 (file)
@@ -437,7 +437,7 @@ arm1026_crval:
        string  cpu_arm1026_name, "ARM1026EJ-S"
        .align
 
-       .section ".proc.info.init", #alloc
+       .section ".proc.info.init", "a"
 
        .type   __arm1026_proc_info,#object
 __arm1026_proc_info:
index c99d24363f32ee64754068b971b059be36ee8f05..39361e196d61b8d35d742f621bf44f25e57d6faa 100644 (file)
@@ -172,7 +172,7 @@ arm720_crval:
  * 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
                .type   __\name\()_proc_info,#object
index 1b4a3838393fbda090d9528d834947bfae96d4ae..1a94bbf6e53fc2e983444164c3e19a1bc935af02 100644 (file)
@@ -128,7 +128,7 @@ __arm740_setup:
 
        .align
 
-       .section ".proc.info.init", #alloc
+       .section ".proc.info.init", "a"
        .type   __arm740_proc_info,#object
 __arm740_proc_info:
        .long   0x41807400
index 17a4687065c7f9cc6a7b2fad4d0605e2767fbca6..52b66cf0259e3ffdcc79208723937f06464f375c 100644 (file)
@@ -72,7 +72,7 @@ __arm7tdmi_setup:
 
                .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, \
        extra_hwcaps=0
index 298c76b47749f962ce8ba46072df1af7dfefecac..31ac8acc34dc553cff1ebdb73072842e065e067c 100644 (file)
@@ -434,7 +434,7 @@ arm920_crval:
 
        .align
 
-       .section ".proc.info.init", #alloc
+       .section ".proc.info.init", "a"
 
        .type   __arm920_proc_info,#object
 __arm920_proc_info:
index 824be3a0bc23820149f99bc0a6ef8f66dfbc7560..ca2c7ca8af21468213173978d41daab45fe0f97e 100644 (file)
@@ -412,7 +412,7 @@ arm922_crval:
 
        .align
 
-       .section ".proc.info.init", #alloc
+       .section ".proc.info.init", "a"
 
        .type   __arm922_proc_info,#object
 __arm922_proc_info:
index d40cff8f102c2b5c7d603f74ceb9215693a33010..a381a0c9f1092e14a9518b85010e0b7ba7add8b4 100644 (file)
@@ -477,7 +477,7 @@ arm925_crval:
 
        .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
        .type   __\name\()_proc_info,#object
index 4ef89e1d11276ea9f944cd9705f58de12edb6b21..1ba253c2bce190608370ad6349309980728a6ba3 100644 (file)
@@ -460,7 +460,7 @@ arm926_crval:
 
        .align
 
-       .section ".proc.info.init", #alloc
+       .section ".proc.info.init", "a"
 
        .type   __arm926_proc_info,#object
 __arm926_proc_info:
index 1c26d991386d7d6f92abd9c3c6c77dcb89ab7392..4b8a00220cc976b97a06240143c6a36dd06563aa 100644 (file)
@@ -340,7 +340,7 @@ __arm940_setup:
 
        .align
 
-       .section ".proc.info.init", #alloc
+       .section ".proc.info.init", "a"
 
        .type   __arm940_proc_info,#object
 __arm940_proc_info:
index 2dc1c75a4fd4a8131de6db7a77be2ed227053e0e..555becf9c758d19543142ff433dbfbac64ef4572 100644 (file)
@@ -395,7 +395,7 @@ __arm946_setup:
 
        .align
 
-       .section ".proc.info.init", #alloc
+       .section ".proc.info.init", "a"
        .type   __arm946_proc_info,#object
 __arm946_proc_info:
        .long   0x41009460
index 913c06e590af516c438a9a20c7d254bae38f1ac7..ef517530130b03fd832a3f46af01773edce3da30 100644 (file)
@@ -66,7 +66,7 @@ __arm9tdmi_setup:
 
                .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
                .type   __\name\()_proc_info, #object
index 8120b6f4dbb83ec2dbff229060018e66e7317562..dddf833fe00078ebc1416a1d7a2a538a114ee46c 100644 (file)
@@ -185,7 +185,7 @@ fa526_cr1_set:
 
        .align
 
-       .section ".proc.info.init", #alloc
+       .section ".proc.info.init", "a"
 
        .type   __fa526_proc_info,#object
 __fa526_proc_info:
index bb6dc34d42a374298c2b50fccb191b02504b402b..b12b76bc8d30ca32f0ada06e82968f545237b5c3 100644 (file)
@@ -571,7 +571,7 @@ feroceon_crval:
 
        .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
        .type   __\name\()_proc_info,#object
index f083085788857b8999a00c62025f240cb74b0a66..d47d6c5cee63a6b7165af8f4477c72dcde8c053e 100644 (file)
@@ -416,7 +416,7 @@ mohawk_crval:
 
        .align
 
-       .section ".proc.info.init", #alloc
+       .section ".proc.info.init", "a"
 
        .type   __88sv331x_proc_info,#object
 __88sv331x_proc_info:
index d5bc5d70256399723f29065b0ab09cdb20a32a9b..baba503ba81669026f23678035e25a795c14df27 100644 (file)
@@ -196,7 +196,7 @@ sa110_crval:
 
        .align
 
-       .section ".proc.info.init", #alloc
+       .section ".proc.info.init", "a"
 
        .type   __sa110_proc_info,#object
 __sa110_proc_info:
index be7b611c76c76ada0a8f5d48737a49e70f4be56e..75ebacc8e4e5cb489773ab6080b59dc311737a1b 100644 (file)
@@ -239,7 +239,7 @@ sa1100_crval:
 
        .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
        .type   __\name\()_proc_info,#object
index c1c85eb3484f319d853b854b96a272cd6f3c6e06..1dd0d5ca27da8f9057565b9b78011c38e97777b1 100644 (file)
@@ -261,7 +261,7 @@ v6_crval:
        string  cpu_elf_name, "v6"
        .align
 
-       .section ".proc.info.init", #alloc
+       .section ".proc.info.init", "a"
 
        /*
         * Match any ARMv6 processor core.
index c4e8006a1a8cdd13ae3e622007e7c5b34883393a..48e0ef6f0dccfe02e25045a455c6fea3701c50ab 100644 (file)
@@ -644,7 +644,7 @@ __v7_setup_stack:
        string  cpu_elf_name, "v7"
        .align
 
-       .section ".proc.info.init", #alloc
+       .section ".proc.info.init", "a"
 
        /*
         * Standard v7 proc info content
index 1a49d503eafc80b461d256f4f068e9a54c6d85f6..84459c1d31b87f4afa91d1f417c617f812f96044 100644 (file)
@@ -93,7 +93,7 @@ ENTRY(cpu_cm7_proc_fin)
        ret     lr
 ENDPROC(cpu_cm7_proc_fin)
 
-       .section ".init.text", #alloc, #execinstr
+       .section ".init.text", "ax"
 
 __v7m_cm7_setup:
        mov     r8, #(V7M_SCB_CCR_DC | V7M_SCB_CCR_IC| V7M_SCB_CCR_BP)
@@ -177,7 +177,7 @@ ENDPROC(__v7m_setup)
        string cpu_elf_name "v7m"
        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
        .long   0                       /* proc_info_list.__cpu_mm_mmu_flags */
index 1ac0fbbe9f127f3524eee28503a9ded19790cc98..42eaecc43cfeff92e29c23ad1ac9e7b9a878e8c0 100644 (file)
@@ -496,7 +496,7 @@ xsc3_crval:
 
        .align
 
-       .section ".proc.info.init", #alloc
+       .section ".proc.info.init", "a"
 
 .macro xsc3_proc_info name:req, cpu_val:req, cpu_mask:req
        .type   __\name\()_proc_info,#object
index bdb2b7749b0393dec09fc39236c32d72cdfa1f06..18ac5a1f89225848eb45c52a94747c57879ef591 100644 (file)
@@ -610,7 +610,7 @@ xscale_crval:
 
        .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
        .type   __\name\()_proc_info,#object