[git commit] ldso: constify reloc array itself
Mike Frysinger
vapier at gentoo.org
Sat Oct 1 19:10:39 UTC 2011
commit: http://git.uclibc.org/uClibc/commit/?id=c44d37d6a21ee9a62cd6b26c24999e8006e2c62c
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
ldso/ldso/arm/dl-debug.h | 2 +-
ldso/ldso/avr32/dl-debug.h | 2 +-
ldso/ldso/bfin/dl-debug.h | 2 +-
ldso/ldso/c6x/dl-debug.h | 2 +-
ldso/ldso/cris/dl-debug.h | 2 +-
ldso/ldso/frv/dl-debug.h | 2 +-
ldso/ldso/i386/dl-debug.h | 2 +-
ldso/ldso/m68k/dl-debug.h | 2 +-
ldso/ldso/mips/dl-debug.h | 2 +-
ldso/ldso/powerpc/dl-debug.h | 2 +-
ldso/ldso/sh/dl-debug.h | 2 +-
ldso/ldso/sh64/dl-debug.h | 2 +-
ldso/ldso/sparc/dl-debug.h | 2 +-
ldso/ldso/x86_64/dl-debug.h | 2 +-
ldso/ldso/xtensa/dl-debug.h | 2 +-
15 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/ldso/ldso/arm/dl-debug.h b/ldso/ldso/arm/dl-debug.h
index 1bca6ff..af14eca 100644
--- a/ldso/ldso/arm/dl-debug.h
+++ b/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",
diff --git a/ldso/ldso/avr32/dl-debug.h b/ldso/ldso/avr32/dl-debug.h
index fe35539..44b0c01 100644
--- a/ldso/ldso/avr32/dl-debug.h
+++ b/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",
diff --git a/ldso/ldso/bfin/dl-debug.h b/ldso/ldso/bfin/dl-debug.h
index 3ba0a98..6952b61 100644
--- a/ldso/ldso/bfin/dl-debug.h
+++ b/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",
diff --git a/ldso/ldso/c6x/dl-debug.h b/ldso/ldso/c6x/dl-debug.h
index 9c6edab..d4915bf 100644
--- a/ldso/ldso/c6x/dl-debug.h
+++ b/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",
diff --git a/ldso/ldso/cris/dl-debug.h b/ldso/ldso/cris/dl-debug.h
index f6c03d2..dcd23ed 100644
--- a/ldso/ldso/cris/dl-debug.h
+++ b/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",
diff --git a/ldso/ldso/frv/dl-debug.h b/ldso/ldso/frv/dl-debug.h
index 9b146a6..65c2386 100644
--- a/ldso/ldso/frv/dl-debug.h
+++ b/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",
diff --git a/ldso/ldso/i386/dl-debug.h b/ldso/ldso/i386/dl-debug.h
index 72a01f8..82baf1f 100644
--- a/ldso/ldso/i386/dl-debug.h
+++ b/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",
diff --git a/ldso/ldso/m68k/dl-debug.h b/ldso/ldso/m68k/dl-debug.h
index a9a80a0..71b513a 100644
--- a/ldso/ldso/m68k/dl-debug.h
+++ b/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",
diff --git a/ldso/ldso/mips/dl-debug.h b/ldso/ldso/mips/dl-debug.h
index 07a2add..33b2dc8 100644
--- a/ldso/ldso/mips/dl-debug.h
+++ b/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",
diff --git a/ldso/ldso/powerpc/dl-debug.h b/ldso/ldso/powerpc/dl-debug.h
index cf203d2..720536e 100644
--- a/ldso/ldso/powerpc/dl-debug.h
+++ b/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",
diff --git a/ldso/ldso/sh/dl-debug.h b/ldso/ldso/sh/dl-debug.h
index e2e74f8..ac442bf 100644
--- a/ldso/ldso/sh/dl-debug.h
+++ b/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",
diff --git a/ldso/ldso/sh64/dl-debug.h b/ldso/ldso/sh64/dl-debug.h
index 485aac7..6d861e5 100644
--- a/ldso/ldso/sh64/dl-debug.h
+++ b/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",
diff --git a/ldso/ldso/sparc/dl-debug.h b/ldso/ldso/sparc/dl-debug.h
index 1249f77..5c62cef 100644
--- a/ldso/ldso/sparc/dl-debug.h
+++ b/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",
diff --git a/ldso/ldso/x86_64/dl-debug.h b/ldso/ldso/x86_64/dl-debug.h
index d605a03..c47062b 100644
--- a/ldso/ldso/x86_64/dl-debug.h
+++ b/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",
diff --git a/ldso/ldso/xtensa/dl-debug.h b/ldso/ldso/xtensa/dl-debug.h
index 327defc..4128d94 100644
--- a/ldso/ldso/xtensa/dl-debug.h
+++ b/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",
More information about the uClibc-cvs
mailing list