forked from Imagelibrary/binutils-gdb
sim: model: constify sim_machs storage
The array of pointers is never modified, so mark it const so it ends up in the read-only data section.
This commit is contained in:
@@ -24,7 +24,7 @@ This file is part of the GNU simulators.
|
||||
#include "sim-main.h"
|
||||
#include "bfd.h"
|
||||
|
||||
const SIM_MACH *sim_machs[] =
|
||||
const SIM_MACH * const sim_machs[] =
|
||||
{
|
||||
#ifdef HAVE_CPU_LM32BF
|
||||
& lm32_mach,
|
||||
|
||||
Reference in New Issue
Block a user