diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-06-06 00:30:57 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-06-06 22:27:59 +0200 |
commit | 9310304d1a5d522f0033a27abed217c9873c1945 (patch) | |
tree | 9ebf43d46e1838f7379197670abf3e39c47e5e8e | |
parent | 7128fe094f25e91ed408acf727a13d85edc3041e (diff) | |
download | upstream-9310304d1a5d522f0033a27abed217c9873c1945.tar.gz upstream-9310304d1a5d522f0033a27abed217c9873c1945.tar.bz2 upstream-9310304d1a5d522f0033a27abed217c9873c1945.zip |
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>
-rw-r--r-- | target/linux/ar71xx/image/lzma-loader/src/loader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar71xx/image/lzma-loader/src/loader.c b/target/linux/ar71xx/image/lzma-loader/src/loader.c index cc73eb1721..794c4b6285 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, |