From 3f75e1d67fe871db85d46618b95d0dc92291577d Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 16 Dec 2020 00:40:15 +1030 Subject: [PATCH] elflink.c constify * elflink.c (elf_flags_to_names): Constify. --- bfd/ChangeLog | 4 ++++ bfd/elflink.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ebbf9706318..3acaa571c0c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2020-12-16 Alan Modra + + * elflink.c (elf_flags_to_names): Constify. + 2020-12-16 Alan Modra * libxcoff.h (struct xcoff_backend_data_rec): Constify diff --git a/bfd/elflink.c b/bfd/elflink.c index 37af3efcb06..2489700da76 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -14358,7 +14358,7 @@ typedef struct flagword flag_value; } elf_flags_to_name_table; -static elf_flags_to_name_table elf_flags_to_names [] = +static const elf_flags_to_name_table elf_flags_to_names [] = { { "SHF_WRITE", SHF_WRITE }, { "SHF_ALLOC", SHF_ALLOC }, -- 2.30.2