Browse Source

ldso: constify reloc array itself

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger 12 năm trước cách đây
mục cha
commit
c44d37d6a2

+ 1 - 1
ldso/ldso/arm/dl-debug.h

@@ -27,7 +27,7 @@
  * SUCH DAMAGE.
  */
 
-static const char *_dl_reltypes_tab[] =
+static const char * const _dl_reltypes_tab[] =
 {
   [0]	"R_ARM_NONE",	    "R_ARM_PC24",	"R_ARM_ABS32",		"R_ARM_REL32",
   [4]	"R_ARM_PC13",	    "R_ARM_ABS16",	"R_ARM_ABS12",		"R_ARM_THM_ABS5",

+ 1 - 1
ldso/ldso/avr32/dl-debug.h

@@ -26,7 +26,7 @@
  * SUCH DAMAGE.
  */
 
-static const char *_dl_reltypes_tab[] = {
+static const char * const _dl_reltypes_tab[] = {
     "R_AVR32_NONE",
     "R_AVR32_32", "R_AVR32_16", "R_AVR32_8",
     "R_AVR32_32_PCREL", "R_AVR32_16_PCREL", "R_AVR32_8_PCREL",

+ 1 - 1
ldso/ldso/bfin/dl-debug.h

@@ -29,7 +29,7 @@
  * SUCH DAMAGE.
  */
 
-static const char *_dl_reltypes_tab[] =
+static const char * const _dl_reltypes_tab[] =
 {
   [0]	"R_BFIN_UNUSED0",	"R_BFIN_PCREL5M2",
   [2]	"R_BFIN_UNUSED1",	"R_BFIN_PCREL10",

+ 1 - 1
ldso/ldso/c6x/dl-debug.h

@@ -8,7 +8,7 @@
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  */
 
-static const char *_dl_reltypes_tab[] =
+static const char * const _dl_reltypes_tab[] =
 {
   	"R_C6000_NONE",			/* 0 */
 	"R_C6000_ABS32",

+ 1 - 1
ldso/ldso/cris/dl-debug.h

@@ -33,7 +33,7 @@
  * SUCH DAMAGE.
  */
 
-static const char *_dl_reltypes_tab[] = {
+static const char * const _dl_reltypes_tab[] = {
 	[0]  "R_CRIS_NONE", "R_CRIS_8", "R_CRIS_16", "R_CRIS_32",
 	[4]  "R_CRIS_8_PCREL", "R_CRIS_16_PCREL", "R_CRIS_32_PCREL", "R_CRIS_GNU_VTINHERIT",
 	[8]  "R_CRIS_GNU_VTENTRY", "R_CRIS_COPY", "R_CRIS_GLOB_DAT", "R_CRIS_JUMP_SLOT",

+ 1 - 1
ldso/ldso/frv/dl-debug.h

@@ -10,7 +10,7 @@
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  */
 
-static const char *_dl_reltypes_tab[] =
+static const char * const _dl_reltypes_tab[] =
 {
   [0]	"R_FRV_NONE",		"R_FRV_32",
   [2]	"R_FRV_LABEL16",	"R_FRV_LABEL24",

+ 1 - 1
ldso/ldso/i386/dl-debug.h

@@ -29,7 +29,7 @@
  * SUCH DAMAGE.
  */
 
-static const char *_dl_reltypes_tab[] = {
+static const char * const _dl_reltypes_tab[] = {
 	[0] "R_386_NONE",     "R_386_32",     "R_386_PC32",     "R_386_GOT32",
 	[4] "R_386_PLT32",    "R_386_COPY",   "R_386_GLOB_DAT", "R_386_JMP_SLOT",
 	[8] "R_386_RELATIVE", "R_386_GOTOFF", "R_386_GOTPC",

+ 1 - 1
ldso/ldso/m68k/dl-debug.h

@@ -29,7 +29,7 @@
  * SUCH DAMAGE.
  */
 
-static const char *_dl_reltypes_tab[] = {
+static const char * const _dl_reltypes_tab[] = {
 	 [0] "R_68K_NONE",
 	 [1] "R_68K_32",     "R_68K_16",       "R_68K_8",
 	 [4] "R_68K_PC32",   "R_68K_PC16",     "R_68K_PC8",

+ 1 - 1
ldso/ldso/mips/dl-debug.h

@@ -27,7 +27,7 @@
  * SUCH DAMAGE.
  */
 
-static const char *_dl_reltypes_tab[] =
+static const char * const _dl_reltypes_tab[] =
 {
 	[0]		"R_MIPS_NONE",	"R_MIPS_16",	"R_MIPS_32",
 	[3]		"R_MIPS_REL32",	"R_MIPS_26",	"R_MIPS_HI16",

+ 1 - 1
ldso/ldso/powerpc/dl-debug.h

@@ -29,7 +29,7 @@
  * SUCH DAMAGE.
  */
 
-static const char *_dl_reltypes_tab[] =
+static const char * const _dl_reltypes_tab[] =
 	{ "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/sh/dl-debug.h

@@ -28,7 +28,7 @@
  * SUCH DAMAGE.
  */
 
-static const char *_dl_reltypes_tab[] =
+static const char * const _dl_reltypes_tab[] =
 {
   [0]	"R_SH_NONE",	"R_SH_DIR32",	"R_SH_REL32",	"R_SH_DIR8WPN",
   [4]	"R_SH_IND12W",	"R_SH_DIR8WPL",	"R_SH_DIR8WPZ",	"R_SH_DIR8BP",

+ 1 - 1
ldso/ldso/sh64/dl-debug.h

@@ -30,7 +30,7 @@
  * SUCH DAMAGE.
  */
 
-static const char *_dl_reltypes_tab[] = {
+static const char * const _dl_reltypes_tab[] = {
 	/* SHcompact relocs */
 	  [0] =	"R_SH_NONE",		"R_SH_DIR32",
 		"R_SH_REL32",		"R_SH_DIR8WPN",

+ 1 - 1
ldso/ldso/sparc/dl-debug.h

@@ -28,7 +28,7 @@
  * SUCH DAMAGE.
  */
 
-static const char * _dl_reltypes_tab[] = {
+static const char * const _dl_reltypes_tab[] = {
 	"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",

+ 1 - 1
ldso/ldso/x86_64/dl-debug.h

@@ -29,7 +29,7 @@
  * SUCH DAMAGE.
  */
 
-static const char *_dl_reltypes_tab[] = {
+static const char * const _dl_reltypes_tab[] = {
 	[ 0] "R_X86_64_NONE",     "R_X86_64_64",       "R_X86_64_PC32",     "R_X86_64_GOT32",
 	[ 4] "R_X86_64_PLT32",    "R_X86_64_COPY",     "R_X86_64_GLOB_DAT", "R_X86_64_JUMP_SLOT",
 	[ 8] "R_X86_64_RELATIVE", "R_X86_64_GOTPCREL", "R_X86_64_32",       "R_X86_64_32S",

+ 1 - 1
ldso/ldso/xtensa/dl-debug.h

@@ -6,7 +6,7 @@
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  */
 
-static const char *_dl_reltypes_tab[] =
+static const char * const _dl_reltypes_tab[] =
 {
 	"R_XTENSA_NONE",
 	"R_XTENSA_32",