elflink.c constify

Alan Modra amodra@gmail.com
Wed Dec 16 04:46:28 GMT 2020


	* elflink.c (elf_flags_to_names): Constify.

diff --git a/bfd/elflink.c b/bfd/elflink.c
index 37af3efcb0..2489700da7 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 },

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list