Skip to content

Commit 790756c

Browse files
nickdesaulniersRussell King
authored andcommitted
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: ClangBuiltLinux#744 Link: https://bugs.llvm.org/show_bug.cgi?id=43759 Link: https://reviews.llvm.org/D69296 Acked-by: Nicolas Pitre <[email protected]> Reviewed-by: Ard Biesheuvel <[email protected]> Reviewed-by: Stefan Agner <[email protected]> Signed-off-by: Nick Desaulniers <[email protected]> Suggested-by: Fangrui Song <[email protected]> Suggested-by: Jian Cai <[email protected]> Suggested-by: Peter Smith <[email protected]> Signed-off-by: Russell King <[email protected]>
1 parent 74d06ef commit 790756c

28 files changed

+29
-29
lines changed

arch/arm/boot/bootp/init.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* size immediately following the kernel, we could build this into
1414
* a binary blob, and concatenate the zImage using the cat command.
1515
*/
16-
.section .start,#alloc,#execinstr
16+
.section .start, "ax"
1717
.type _start, #function
1818
.globl _start
1919

arch/arm/boot/compressed/big-endian.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Author: Nicolas Pitre
77
*/
88

9-
.section ".start", #alloc, #execinstr
9+
.section ".start", "ax"
1010

1111
mrc p15, 0, r0, c1, c0, 0 @ read control reg
1212
orr r0, r0, #(1 << 7) @ enable big endian mode

arch/arm/boot/compressed/head.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
#endif
141141
.endm
142142

143-
.section ".start", #alloc, #execinstr
143+
.section ".start", "ax"
144144
/*
145145
* sort out different calling conventions
146146
*/

arch/arm/boot/compressed/piggy.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* SPDX-License-Identifier: GPL-2.0 */
2-
.section .piggydata,#alloc
2+
.section .piggydata, "a"
33
.globl input_data
44
input_data:
55
.incbin "arch/arm/boot/compressed/piggy_data"

arch/arm/mm/proc-arm1020.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ cpu_arm1020_name:
491491

492492
.align
493493

494-
.section ".proc.info.init", #alloc
494+
.section ".proc.info.init", "a"
495495

496496
.type __arm1020_proc_info,#object
497497
__arm1020_proc_info:

arch/arm/mm/proc-arm1020e.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ arm1020e_crval:
449449

450450
.align
451451

452-
.section ".proc.info.init", #alloc
452+
.section ".proc.info.init", "a"
453453

454454
.type __arm1020e_proc_info,#object
455455
__arm1020e_proc_info:

arch/arm/mm/proc-arm1022.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ arm1022_crval:
443443

444444
.align
445445

446-
.section ".proc.info.init", #alloc
446+
.section ".proc.info.init", "a"
447447

448448
.type __arm1022_proc_info,#object
449449
__arm1022_proc_info:

arch/arm/mm/proc-arm1026.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ arm1026_crval:
437437
string cpu_arm1026_name, "ARM1026EJ-S"
438438
.align
439439

440-
.section ".proc.info.init", #alloc
440+
.section ".proc.info.init", "a"
441441

442442
.type __arm1026_proc_info,#object
443443
__arm1026_proc_info:

arch/arm/mm/proc-arm720.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ arm720_crval:
172172
* See <asm/procinfo.h> for a definition of this structure.
173173
*/
174174
175-
.section ".proc.info.init", #alloc
175+
.section ".proc.info.init", "a"
176176

177177
.macro arm720_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, cpu_flush:req
178178
.type __\name\()_proc_info,#object

arch/arm/mm/proc-arm740.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ __arm740_setup:
128128

129129
.align
130130

131-
.section ".proc.info.init", #alloc
131+
.section ".proc.info.init", "a"
132132
.type __arm740_proc_info,#object
133133
__arm740_proc_info:
134134
.long 0x41807400

0 commit comments

Comments
 (0)