summaryrefslogtreecommitdiffstats
path: root/commands/go.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2008-04-04 11:46:55 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2008-04-04 14:45:04 +0200
commit50cc8c5412e804480a10ecdd9546c7b6ad21760e (patch)
tree86d3a04fd004996fc91839b9a7cad705090bcdc0 /commands/go.c
parenta9912f68c65850d2bed12111aabe8b779c95e365 (diff)
downloadbarebox-50cc8c5412e804480a10ecdd9546c7b6ad21760e.tar.gz
barebox-50cc8c5412e804480a10ecdd9546c7b6ad21760e.tar.xz
Subject: [PATCH] [general] Fixed constant strings in data section issue
For practical reasons I changed all string literals assumed to be constant to reside in .rodata subsection at end of .text section. Signed-off-by: Carsten Schlote <schlote@vahanus.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/go.c')
-rw-r--r--commands/go.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/commands/go.c b/commands/go.c
index a1fd2f087f..7ba6b37be7 100644
--- a/commands/go.c
+++ b/commands/go.c
@@ -50,13 +50,13 @@ static int do_go (cmd_tbl_t *cmdtp, int argc, char *argv[])
return rcode;
}
-/* -------------------------------------------------------------------- */
+static const __maybe_unused char cmd_go_help[] =
+"addr [arg ...]\n - start application at address 'addr'\n"
+" passing 'arg' as arguments\n";
U_BOOT_CMD_START(go)
.maxargs = CONFIG_MAXARGS,
.cmd = do_go,
.usage = "start application at address 'addr'",
- U_BOOT_CMD_HELP(
- "addr [arg ...]\n - start application at address 'addr'\n"
- " passing 'arg' as arguments\n")
+ U_BOOT_CMD_HELP(cmd_go_help)
U_BOOT_CMD_END