bfd: constify a few arrays
authorMike Frysinger <vapier@gentoo.org>
Thu, 28 Apr 2011 12:50:32 +0000 (12:50 +0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 28 Apr 2011 12:50:32 +0000 (12:50 +0000)
bfd/ChangeLog
bfd/dwarf2.c
bfd/elf.c
bfd/libbfd-in.h
bfd/libbfd.h

index 93cdda01b4ea23f41d0cb35235bf052b43df4a99..8a295fc9692013c46800ff399e5a82f7a99df450 100644 (file)
@@ -1,3 +1,10 @@
+2011-04-28  Mike Frysinger  <vapier@gentoo.org>
+
+       * dwarf2.c (dwarf_debug_sections): Mark const.
+       * elf.c (special_sections): Likewise.
+       * libbfd-in.h (dwarf_debug_sections): Likewise.
+       * libbfd.h: Regenerate.
+
 2011-04-26  Kai Tietz  <ktietz@redhat.com>
 
        * coffcode.h (sec_to_styp_flags): Allow linkonce for
index 3db23956ab7815cf13596c3b76e658a2bea9e9dd..02e69a8672887426d4414e911b11cfb683f268e3 100644 (file)
@@ -278,7 +278,7 @@ struct attr_abbrev
 /* Map of uncompressed DWARF debug section name to compressed one.  It
    is terminated by NULL uncompressed_name.  */
 
-struct dwarf_debug_section dwarf_debug_sections[] =
+const struct dwarf_debug_section dwarf_debug_sections[] =
 {
   { ".debug_abbrev",           ".zdebug_abbrev" },
   { ".debug_aranges",          ".zdebug_aranges" },
index 71de8446ac5fd8f1cac794aefc7689529308d21d..b5a1952e7d7d1299ec4c568ae3f96639d8affc99 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -2164,7 +2164,7 @@ static const struct bfd_elf_special_section special_sections_z[] =
   { NULL,                     0,  0, 0,            0 }
 };
 
-static const struct bfd_elf_special_section *special_sections[] =
+static const struct bfd_elf_special_section * const special_sections[] =
 {
   special_sections_b,          /* 'b' */
   special_sections_c,          /* 'c' */
index b7201bdde2a976888dd5a15ea6fd113d66828fee..ad45ba3e4279d597b8fc61913a15c3c67807a577 100644 (file)
@@ -817,4 +817,4 @@ struct dwarf_debug_section
 /* Map of uncompressed DWARF debug section name to compressed one.  It
    is terminated by NULL uncompressed_name.  */
 
-extern struct dwarf_debug_section dwarf_debug_sections[];
+extern const struct dwarf_debug_section dwarf_debug_sections[];
index 2e7df4f11cfaf856b6a8c1b4d8948fe742812269..90737dfc294bfecb8de5fca4e994221a65a48610 100644 (file)
@@ -822,7 +822,7 @@ struct dwarf_debug_section
 /* Map of uncompressed DWARF debug section name to compressed one.  It
    is terminated by NULL uncompressed_name.  */
 
-extern struct dwarf_debug_section dwarf_debug_sections[];
+extern const struct dwarf_debug_section dwarf_debug_sections[];
 /* Extracted from init.c.  */
 /* Extracted from libbfd.c.  */
 bfd_boolean bfd_write_bigendian_4byte_int (bfd *, unsigned int);
This page took 0.032394 seconds and 4 git commands to generate.