From 50cc8c5412e804480a10ecdd9546c7b6ad21760e Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 4 Apr 2008 11:46:55 +0200 Subject: 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 Signed-off-by: Sascha Hauer --- commands/memtest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'commands/memtest.c') diff --git a/commands/memtest.c b/commands/memtest.c index a1d2df03eb..16cc7ccb94 100644 --- a/commands/memtest.c +++ b/commands/memtest.c @@ -342,7 +342,7 @@ static int do_mem_mtest (cmd_tbl_t *cmdtp, int argc, char *argv[]) return mem_test(start, end, pattern); } -static __maybe_unused char cmd_mtest_help[] = +static const __maybe_unused char cmd_mtest_help[] = "Usage: " #ifdef CONFIG_CMD_MTEST_ALTERNATIVE "[pattern]" @@ -353,5 +353,6 @@ U_BOOT_CMD_START(mtest) .maxargs = 4, .cmd = do_mem_mtest, .usage = "simple RAM test", + U_BOOT_CMD_HELP(cmd_mtest_help) U_BOOT_CMD_END -- cgit v1.2.3