From ba9666525f68ab75a7176bd02b7e8d0dc8c644b7 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 27 Jun 2021 01:26:30 -0400 Subject: 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. --- sim/lm32/arch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/lm32/arch.c') diff --git a/sim/lm32/arch.c b/sim/lm32/arch.c index e8a826a..72fe4b4 100644 --- a/sim/lm32/arch.c +++ b/sim/lm32/arch.c @@ -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, -- cgit v1.1