aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-12-16 00:40:15 +1030
committerAlan Modra <amodra@gmail.com>2020-12-16 15:17:53 +1030
commit3f75e1d67fe871db85d46618b95d0dc92291577d (patch)
treeeaa519871a2c04688b4604d49771814a8339a70e /bfd
parent342371d54cbbddf4342e1b261ad7c0941d7912d3 (diff)
downloadgdb-3f75e1d67fe871db85d46618b95d0dc92291577d.zip
gdb-3f75e1d67fe871db85d46618b95d0dc92291577d.tar.gz
gdb-3f75e1d67fe871db85d46618b95d0dc92291577d.tar.bz2
elflink.c constify
* elflink.c (elf_flags_to_names): Constify.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elflink.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index ebbf970..3acaa57 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,9 @@
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
_xcoff_glink_code.
(XCOFF_RELOC_FUNCTION_ARGS, XCOFF_COMPLAIN_FUNCTION_ARGS): Delete.
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 37af3ef..2489700 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 },