aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-02-07 23:16:22 +0000
committerNick Clifton <nickc@redhat.com>2001-02-07 23:16:22 +0000
commit7340082dc8d4b1fcd14f6d18fc0086fdae31d556 (patch)
tree93c292ba0787e54e9ce8723f47602adb16e17c30
parent4d6ed7c8cea13961e6c4bd3425dd679eb44ebc34 (diff)
downloadgdb-7340082dc8d4b1fcd14f6d18fc0086fdae31d556.zip
gdb-7340082dc8d4b1fcd14f6d18fc0086fdae31d556.tar.gz
gdb-7340082dc8d4b1fcd14f6d18fc0086fdae31d556.tar.bz2
Change bfd_target_vector from an array to a pointer
-rw-r--r--bfd/ChangeLog9
-rw-r--r--bfd/libbfd-in.h2
-rw-r--r--bfd/libbfd.h2
-rw-r--r--bfd/po/bfd.pot10
-rw-r--r--bfd/targets.c3
-rw-r--r--binutils/ChangeLog6
-rw-r--r--binutils/bucomm.c2
-rw-r--r--binutils/objdump.c10
-rw-r--r--binutils/po/binutils.pot2
9 files changed, 31 insertions, 15 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 599734e..ab54002 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,12 @@
+2001-02-07 Todd Vierling <tv@wasabisystems.com>
+
+ * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
+ * libbfd.h (bfd_target_vector): Likewise.
+ * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
+ make static; create pointer reference named bfd_target_vector.
+ (_bfd_target_vector_entries): Calculate this based on the array
+ typed _bfd_target_vector.
+
2001-02-06 H.J. Lu <hjl@gnu.org>
* elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
diff --git a/bfd/libbfd-in.h b/bfd/libbfd-in.h
index fb5f210..28ade8c 100644
--- a/bfd/libbfd-in.h
+++ b/bfd/libbfd-in.h
@@ -521,7 +521,7 @@ extern bfd *bfd_last_cache;
/* List of supported target vectors, and the default vector (if
bfd_default_vector[0] is NULL, there is no default). */
-extern const bfd_target * const bfd_target_vector[];
+extern const bfd_target * const *bfd_target_vector;
extern const bfd_target *bfd_default_vector[];
/* Functions shared by the ECOFF and MIPS ELF backends, which have no
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index d6e3939..68f9316 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -521,7 +521,7 @@ extern bfd *bfd_last_cache;
/* List of supported target vectors, and the default vector (if
bfd_default_vector[0] is NULL, there is no default). */
-extern const bfd_target * const bfd_target_vector[];
+extern const bfd_target * const *bfd_target_vector;
extern const bfd_target *bfd_default_vector[];
/* Functions shared by the ECOFF and MIPS ELF backends, which have no
diff --git a/bfd/po/bfd.pot b/bfd/po/bfd.pot
index 1363cc6..40cba07 100644
--- a/bfd/po/bfd.pot
+++ b/bfd/po/bfd.pot
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2001-02-06 17:52-0800\n"
+"POT-Creation-Date: 2001-02-07 15:02-0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -191,7 +191,7 @@ msgstr ""
msgid "GP relative relocation used when GP not defined"
msgstr ""
-#: coff-alpha.c:1486 elf64-alpha.c:4033
+#: coff-alpha.c:1486 elf64-alpha.c:4037
msgid "using multiple gp values"
msgstr ""
@@ -970,7 +970,7 @@ msgstr ""
msgid "static procedure (no name)"
msgstr ""
-#: elf32-mips.c:5005 elf64-alpha.c:4406
+#: elf32-mips.c:5005 elf64-alpha.c:4410
#, c-format
msgid "%s: illegal section name `%s'"
msgstr ""
@@ -1154,11 +1154,11 @@ msgstr ""
msgid "v850ea architecture"
msgstr ""
-#: elf64-alpha.c:974
+#: elf64-alpha.c:978
msgid "GPDISP relocation did not find ldah and lda instructions"
msgstr ""
-#: elf64-alpha.c:3043
+#: elf64-alpha.c:3047
#, c-format
msgid "%s: .got subsegment exceeds 64K (size %d)"
msgstr ""
diff --git a/bfd/targets.c b/bfd/targets.c
index 8f831f0..0211ec8 100644
--- a/bfd/targets.c
+++ b/bfd/targets.c
@@ -682,7 +682,7 @@ extern const bfd_target sco5_core_vec;
extern const bfd_target trad_core_vec;
extern const bfd_target ptrace_core_vec;
-const bfd_target * const bfd_target_vector[] = {
+static const bfd_target * const _bfd_target_vector[] = {
#ifdef SELECT_VECS
@@ -971,6 +971,7 @@ const bfd_target * const bfd_target_vector[] = {
NULL /* end of list marker */
};
+const bfd_target * const *bfd_target_vector = _bfd_target_vector;
/* bfd_default_vector[0] contains either the address of the default vector,
if there is one, or zero if there isn't. */
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 7e87668..6efff5c 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2001-02-07 Todd Vierling <tv@wasabisystems.com>
+
+ * bucomm.c (bfd_target_vector): Change extern array to pointer.
+ * objdump.c (bfd_target_vector): Likewise.
+
2001-02-07 David Mosberger <davidm@hpl.hp.com>
* readelf.c (process_unwind): New function.
@@ -12,6 +17,7 @@
* unwind-ia64.h: New file.
* Makefile.am: Include unwind-ia64.c in readelf build.
* Makefile.in: Regenerate.
+ * po/binutils.pot: Regenerate.
2001-02-04 Philip Blundell <philb@gnu.org>
diff --git a/binutils/bucomm.c b/binutils/bucomm.c
index 86c327f..1cf904d 100644
--- a/binutils/bucomm.c
+++ b/binutils/bucomm.c
@@ -157,7 +157,7 @@ list_supported_targets (name, f)
const char *name;
FILE *f;
{
- extern bfd_target *bfd_target_vector[];
+ extern const bfd_target *const *bfd_target_vector;
int t;
if (name == NULL)
diff --git a/binutils/objdump.c b/binutils/objdump.c
index a665831..1f66ab7 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -2644,14 +2644,14 @@ endian_string (endian)
static void
display_target_list ()
{
- extern bfd_target *bfd_target_vector[];
+ extern const bfd_target *const *bfd_target_vector;
char *dummy_name;
int t;
dummy_name = make_temp_file (NULL);
for (t = 0; bfd_target_vector[t]; t++)
{
- bfd_target *p = bfd_target_vector[t];
+ const bfd_target *p = bfd_target_vector[t];
bfd *abfd = bfd_openw (dummy_name, p->name);
int a;
@@ -2692,7 +2692,7 @@ display_info_table (first, last)
int first;
int last;
{
- extern bfd_target *bfd_target_vector[];
+ extern const bfd_target *const *bfd_target_vector;
int t, a;
char *dummy_name;
@@ -2710,7 +2710,7 @@ display_info_table (first, last)
bfd_printable_arch_mach (a, 0));
for (t = first; t < last && bfd_target_vector[t]; t++)
{
- bfd_target *p = bfd_target_vector[t];
+ const bfd_target *p = bfd_target_vector[t];
boolean ok = true;
bfd *abfd = bfd_openw (dummy_name, p->name);
@@ -2761,7 +2761,7 @@ static void
display_target_tables ()
{
int t, columns;
- extern bfd_target *bfd_target_vector[];
+ extern const bfd_target *const *bfd_target_vector;
char *colum;
columns = 0;
diff --git a/binutils/po/binutils.pot b/binutils/po/binutils.pot
index c6df38c..4533b9d 100644
--- a/binutils/po/binutils.pot
+++ b/binutils/po/binutils.pot
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2001-02-07 10:50-0800\n"
+"POT-Creation-Date: 2001-02-07 15:09-0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"