Fixed building with modern compilers

This commit is contained in:
Nathan 2025-04-07 00:43:16 -05:00
parent eee847d17d
commit 2c3b156896
10 changed files with 10 additions and 10 deletions

View File

@ -16,7 +16,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

View File

@ -5,7 +5,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

View File

@ -114,7 +114,7 @@
#endif #endif
.endm .endm
.section ".start", #alloc, #execinstr .section ".start", "ax"
/* /*
* sort out different calling conventions * sort out different calling conventions
*/ */

View File

@ -1,4 +1,4 @@
.section .piggydata,#alloc .section .piggydata, "a"
.globl input_data .globl input_data
input_data: input_data:
.incbin "arch/arm/boot/compressed/piggy.gzip" .incbin "arch/arm/boot/compressed/piggy.gzip"

View File

@ -1,4 +1,4 @@
.section .piggydata,#alloc .section .piggydata, "a"
.globl input_data .globl input_data
input_data: input_data:
.incbin "arch/arm/boot/compressed/piggy.lzma" .incbin "arch/arm/boot/compressed/piggy.lzma"

View File

@ -1,4 +1,4 @@
.section .piggydata,#alloc .section .piggydata, "a"
.globl input_data .globl input_data
input_data: input_data:
.incbin "arch/arm/boot/compressed/piggy.xzkern" .incbin "arch/arm/boot/compressed/piggy.xzkern"

View File

@ -164,7 +164,7 @@ extern int __put_user_8(void *, unsigned long long);
#define __put_user_check(x,p) \ #define __put_user_check(x,p) \
({ \ ({ \
unsigned long __limit = current_thread_info()->addr_limit - 1; \ unsigned long __limit = current_thread_info()->addr_limit - 1; \
register const typeof(*(p)) __r2 asm("r2") = (x); \ register typeof(*(p)) __r2 asm("r2") = (x); \
register const typeof(*(p)) __user *__p asm("r0") = (p);\ register const typeof(*(p)) __user *__p asm("r0") = (p);\
register unsigned long __l asm("r1") = __limit; \ register unsigned long __l asm("r1") = __limit; \
register int __e asm("r0"); \ register int __e asm("r0"); \

View File

@ -395,7 +395,7 @@ __v7_setup_stack:
string cpu_elf_name, "v7" string cpu_elf_name, "v7"
.align .align
.section ".proc.info.init", #alloc, #execinstr .section ".proc.info.init", "ax"
/* /*
* Standard v7 proc info content * Standard v7 proc info content

View File

@ -39,7 +39,7 @@ LINECOMMENT "//".*\n
#include "srcpos.h" #include "srcpos.h"
#include "dtc-parser.tab.h" #include "dtc-parser.tab.h"
YYLTYPE yylloc; extern YYLTYPE yylloc;
/* CAUTION: this will stop working if we ever use yyless() or yyunput() */ /* CAUTION: this will stop working if we ever use yyless() or yyunput() */
#define YY_USER_ACTION \ #define YY_USER_ACTION \

View File

@ -637,7 +637,7 @@ char *yytext;
#include "srcpos.h" #include "srcpos.h"
#include "dtc-parser.tab.h" #include "dtc-parser.tab.h"
YYLTYPE yylloc; extern YYLTYPE yylloc;
/* CAUTION: this will stop working if we ever use yyless() or yyunput() */ /* CAUTION: this will stop working if we ever use yyless() or yyunput() */
#define YY_USER_ACTION \ #define YY_USER_ACTION \