summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bfd/ChangeLog7
-rw-r--r--bfd/dwarf2.c2
-rw-r--r--bfd/elf.c2
-rw-r--r--bfd/libbfd-in.h2
-rw-r--r--bfd/libbfd.h2
5 files changed, 11 insertions, 4 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 93cdda01b4e..8a295fc9692 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index 3db23956ab7..02e69a86728 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -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" },
diff --git a/bfd/elf.c b/bfd/elf.c
index 71de8446ac5..b5a1952e7d7 100644
--- 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' */
diff --git a/bfd/libbfd-in.h b/bfd/libbfd-in.h
index b7201bdde2a..ad45ba3e427 100644
--- a/bfd/libbfd-in.h
+++ b/bfd/libbfd-in.h
@@ -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[];
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index 2e7df4f11cf..90737dfc294 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -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);