summaryrefslogtreecommitdiff
path: root/gcc/config/mips/elf64.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/mips/elf64.h')
-rw-r--r--gcc/config/mips/elf64.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/config/mips/elf64.h b/gcc/config/mips/elf64.h
index e07ce469af0..cc94020e804 100644
--- a/gcc/config/mips/elf64.h
+++ b/gcc/config/mips/elf64.h
@@ -197,8 +197,9 @@ do { \
#define UNIQUE_SECTION(DECL,RELOC) \
do { \
int len, size, sec; \
- char *name, *string, *prefix; \
- static char *prefixes[4][2] = { \
+ const char *name, *prefix; \
+ char *string; \
+ static const char *const prefixes[4][2] = { \
{ ".text.", ".gnu.linkonce.t." }, \
{ ".rodata.", ".gnu.linkonce.r." }, \
{ ".data.", ".gnu.linkonce.d." }, \