public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* elflink.c constify
@ 2020-12-16  4:46 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2020-12-16  4:46 UTC (permalink / raw)
  To: binutils

	* 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-16  4:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-16  4:46 elflink.c constify Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).