Browse Source

Make some strings const
-Erik

Eric Andersen 23 years ago
parent
commit
3d90de2751

+ 1 - 1
ldso/ldso/arm/elfinterp.c

@@ -20,7 +20,7 @@
 #define VERBOSE_DLINKER
 #endif
 #ifdef VERBOSE_DLINKER
-static char *_dl_reltypes[] =
+static const char *_dl_reltypes[] =
 	{ "R_ARM_NONE", "R_ARM_PC24", "R_ARM_ABS32", "R_ARM_REL32",
 	"R_ARM_PC13", "R_ARM_ABS16", "R_ARM_ABS12", "R_ARM_THM_ABS5",
 	"R_ARM_ABS8", "R_ARM_SBREL32", "R_ARM_THM_PC22", "R_ARM_THM_PC8",

+ 1 - 1
ldso/ldso/i386/elfinterp.c

@@ -20,7 +20,7 @@
 #define VERBOSE_DLINKER
 #endif
 #ifdef VERBOSE_DLINKER
-static char *_dl_reltypes[] =
+static const char *_dl_reltypes[] =
 	{ "R_386_NONE", "R_386_32", "R_386_PC32", "R_386_GOT32",
 	"R_386_PLT32", "R_386_COPY", "R_386_GLOB_DAT",
 	"R_386_JMP_SLOT", "R_386_RELATIVE", "R_386_GOTOFF",

+ 1 - 1
ldso/ldso/m68k/elfinterp.c

@@ -23,7 +23,7 @@
 #define VERBOSE_DLINKER
 #endif
 #ifdef VERBOSE_DLINKER
-static char *_dl_reltypes[] =
+static const char *_dl_reltypes[] =
 {
   "R_68K_NONE",
   "R_68K_32", "R_68K_16", "R_68K_8",

+ 1 - 1
ldso/ldso/powerpc/elfinterp.c

@@ -21,7 +21,7 @@
 #define VERBOSE_DLINKER
 #endif
 #ifdef VERBOSE_DLINKER
-static char *_dl_reltypes[] =
+static const char *_dl_reltypes[] =
 	{ "R_PPC_NONE", "R_PPC_ADDR32", "R_PPC_ADDR24", "R_PPC_ADDR16",
 	"R_PPC_ADDR16_LO", "R_PPC_ADDR16_HI", "R_PPC_ADDR16_HA",
 	"R_PPC_ADDR14", "R_PPC_ADDR14_BRTAKEN", "R_PPC_ADDR14_BRNTAKEN",

+ 1 - 1
ldso/ldso/sparc/elfinterp.c

@@ -20,7 +20,7 @@
 #define VERBOSE_DLINKER
 #endif
 #ifdef VERBOSE_DLINKER
-static char * _dl_reltypes[] = { "R_SPARC_NONE", "R_SPARC_8",
+static const char * _dl_reltypes[] = { "R_SPARC_NONE", "R_SPARC_8",
   "R_SPARC_16", "R_SPARC_32", "R_SPARC_DISP8", "R_SPARC_DISP16",
   "R_SPARC_DISP32", "R_SPARC_WDISP30", "R_SPARC_WDISP22",
   "R_SPARC_HI22", "R_SPARC_22", "R_SPARC_13", "R_SPARC_LO10",