From ad5448d9b4c32f839691f089a884bd36bc18cbcd Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Sun, 23 Aug 2015 08:17:30 -0600 Subject: [PATCH] mksymtab: declare g_symtab array as conts to occupy RO section (Flash). --- tools/mksymtab.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/mksymtab.c b/tools/mksymtab.c index e9591febbcb..ddac7fda074 100644 --- a/tools/mksymtab.c +++ b/tools/mksymtab.c @@ -1,7 +1,7 @@ /**************************************************************************** * tools/mksymtab.c * - * Copyright (C) 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -234,7 +234,7 @@ int main(int argc, char **argv, char **envp) /* Now the symbol table itself */ - fprintf(outstream, "\nstruct symtab_s %s[] =\n", SYMTAB_NAME); + fprintf(outstream, "\nconst struct symtab_s %s[] =\n", SYMTAB_NAME); fprintf(outstream, "{\n"); /* Parse each line in the CVS file */