elflink.c constify

* elflink.c (elf_flags_to_names): Constify.
This commit is contained in:
Alan Modra 2020-12-16 00:40:15 +10:30
parent 342371d54c
commit 3f75e1d67f
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2020-12-16 Alan Modra <amodra@gmail.com>
* elflink.c (elf_flags_to_names): Constify.
2020-12-16 Alan Modra <amodra@gmail.com>
* libxcoff.h (struct xcoff_backend_data_rec): Constify

View file

@ -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 },