diff options
author | Alan Modra <amodra@gmail.com> | 2020-12-15 22:08:20 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-12-16 15:17:52 +1030 |
commit | 14aa7c52a3caac7de7931a7a537fe1706ce180d1 (patch) | |
tree | e51da11a323940426daa6491feebd27979b85e99 /bfd/arc-plt.h | |
parent | cf7a3c01d82abdf110ef85ab770e5997d8ac28ac (diff) | |
download | gdb-14aa7c52a3caac7de7931a7a537fe1706ce180d1.zip gdb-14aa7c52a3caac7de7931a7a537fe1706ce180d1.tar.gz gdb-14aa7c52a3caac7de7931a7a537fe1706ce180d1.tar.bz2 |
arc constify
Move a read-only array to .rodata.
* arc-plt.h (plt_versions): Constify.
* elf32-arc.c (arc_get_plt_version): Constify return pointer,
adjust uses throughout.
Diffstat (limited to 'bfd/arc-plt.h')
-rw-r--r-- | bfd/arc-plt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/arc-plt.h b/bfd/arc-plt.h index f668fee..61bd9a6 100644 --- a/bfd/arc-plt.h +++ b/bfd/arc-plt.h @@ -178,7 +178,7 @@ struct plt_version_t #define PLT_ELEM(...) #define ENTRY_RELOC(...) #define ELEM_RELOC(...) -struct plt_version_t plt_versions[PLT_MAX] = { +const struct plt_version_t plt_versions[PLT_MAX] = { #include "arc-plt.def" |