From: Alan Modra Date: Tue, 15 Dec 2020 14:10:15 +0000 (+1030) Subject: elflink.c constify X-Git-Tag: binutils-2_36~263 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3f75e1d67fe871db85d46618b95d0dc92291577d;p=thirdparty%2Fbinutils-gdb.git elflink.c constify * elflink.c (elf_flags_to_names): Constify. --- 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 },