0563473abb
Fixes: d139a13563
("Add various patches to deal with bigger kernels")
Fixes #1417
23 lines
930 B
Diff
23 lines
930 B
Diff
From: Matthias Schiffer <mschiffer@universe-factory.net>
|
|
Date: Wed, 6 Jun 2018 00:30:57 +0200
|
|
Subject: ar71xx: lzma-loader: constify kernel argv array
|
|
|
|
By making the kernel argv array const, the .data section can always be
|
|
omitted from the laoder binary.
|
|
|
|
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
|
|
|
|
diff --git a/target/linux/ar71xx/image/lzma-loader/src/loader.c b/target/linux/ar71xx/image/lzma-loader/src/loader.c
|
|
index cc73eb1721cbfbf2ad1bb94e8e6d3ab006983c5d..794c4b6285a7fa0423c22d172828415e6f2be93b 100644
|
|
--- a/target/linux/ar71xx/image/lzma-loader/src/loader.c
|
|
+++ b/target/linux/ar71xx/image/lzma-loader/src/loader.c
|
|
@@ -75,7 +75,7 @@ static unsigned long kernel_la;
|
|
#ifdef CONFIG_KERNEL_CMDLINE
|
|
#define kernel_argc 2
|
|
static const char kernel_cmdline[] = CONFIG_KERNEL_CMDLINE;
|
|
-static const char *kernel_argv[] = {
|
|
+static const char *const kernel_argv[] = {
|
|
NULL,
|
|
kernel_cmdline,
|
|
NULL,
|