OSDN Git Service

ldso: constify reloc array itself
authorMike Frysinger <vapier@gentoo.org>
Sat, 1 Oct 2011 19:10:39 +0000 (15:10 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 1 Oct 2011 19:10:39 +0000 (15:10 -0400)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 files changed:
ldso/ldso/arm/dl-debug.h
ldso/ldso/avr32/dl-debug.h
ldso/ldso/bfin/dl-debug.h
ldso/ldso/c6x/dl-debug.h
ldso/ldso/cris/dl-debug.h
ldso/ldso/frv/dl-debug.h
ldso/ldso/i386/dl-debug.h
ldso/ldso/m68k/dl-debug.h
ldso/ldso/mips/dl-debug.h
ldso/ldso/powerpc/dl-debug.h
ldso/ldso/sh/dl-debug.h
ldso/ldso/sh64/dl-debug.h
ldso/ldso/sparc/dl-debug.h
ldso/ldso/x86_64/dl-debug.h
ldso/ldso/xtensa/dl-debug.h

index 1bca6ff..af14eca 100644 (file)
@@ -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",
index fe35539..44b0c01 100644 (file)
@@ -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",
index 3ba0a98..6952b61 100644 (file)
@@ -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",
index 9c6edab..d4915bf 100644 (file)
@@ -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",
index f6c03d2..dcd23ed 100644 (file)
@@ -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",
index 9b146a6..65c2386 100644 (file)
@@ -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",
index 72a01f8..82baf1f 100644 (file)
@@ -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",
index a9a80a0..71b513a 100644 (file)
@@ -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",
index 07a2add..33b2dc8 100644 (file)
@@ -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",
index cf203d2..720536e 100644 (file)
@@ -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",
index e2e74f8..ac442bf 100644 (file)
@@ -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",
index 485aac7..6d861e5 100644 (file)
@@ -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",
index 1249f77..5c62cef 100644 (file)
@@ -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",
index d605a03..c47062b 100644 (file)
@@ -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",
index 327defc..4128d94 100644 (file)
@@ -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",