From: Mike Frysinger Date: Sun, 27 Jun 2021 04:05:10 +0000 (-0400) Subject: sim: frv: add missing const type X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dd5ef931df8f0ea68e18cadaa1b4636cf1dbb3dc;p=binutils-gdb.git sim: frv: add missing const type --- diff --git a/sim/frv/ChangeLog b/sim/frv/ChangeLog index e82e9c82e4c..bc42a81c646 100644 --- a/sim/frv/ChangeLog +++ b/sim/frv/ChangeLog @@ -1,3 +1,7 @@ +2021-06-27 Mike Frysinger + + * sim-if.c (sim_open): Mark backend_data const. + 2021-06-27 Mike Frysinger * sim-main.h (SIM_ENGINE_RESTART_HOOK): Delete 0. diff --git a/sim/frv/sim-if.c b/sim/frv/sim-if.c index ac5d83cbed1..530a8dd0428 100644 --- a/sim/frv/sim-if.c +++ b/sim/frv/sim-if.c @@ -103,7 +103,7 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback, bfd *abfd, bfd *prog_bfd = STATE_PROG_BFD (sd); if (prog_bfd != NULL) { - struct elf_backend_data *backend_data; + const struct elf_backend_data *backend_data; if (bfd_get_arch (prog_bfd) != bfd_arch_frv) {