summaryrefslogtreecommitdiff
path: root/cross/binutils/patches/patch-arrays
blob: effd455631ce659ee1cf5f3ffaf9520d35ea600f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
$NetBSD: patch-arrays,v 1.2 2001/01/24 12:13:27 wiz Exp $
--- ./bfd/libbfd-in.h.orig	Fri May  1 11:48:12 1998
+++ ./bfd/libbfd-in.h	Mon Dec 28 17:43:21 1998
@@ -496,7 +498,7 @@
 
 /* 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
--- ./bfd/libbfd.h.orig	Fri May  1 11:48:12 1998
+++ ./bfd/libbfd.h	Mon Dec 28 17:43:21 1998
@@ -496,7 +498,7 @@
 
 /* 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
--- ./bfd/targets.c.orig	Fri May  1 11:48:16 1998
+++ ./bfd/targets.c	Mon Dec 28 17:43:23 1998
@@ -611,7 +612,7 @@
 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
 
@@ -841,6 +846,7 @@
 
 	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.  */
--- ./binutils/bucomm.c.orig	Fri May  1 11:49:31 1998
+++ ./binutils/bucomm.c	Tue Dec 21 07:30:13 1999
@@ -137,7 +137,7 @@
      const char *name;
      FILE *f;
 {
-  extern bfd_target *bfd_target_vector[];
+  extern bfd_target **bfd_target_vector;
   int t;
 
   if (name == NULL)
--- ./binutils/objdump.c.orig	Fri May  1 11:49:34 1998
+++ ./binutils/objdump.c	Tue Dec 21 07:30:13 1999
@@ -2466,7 +2466,7 @@
 static void
 display_target_list ()
 {
-  extern bfd_target *bfd_target_vector[];
+  extern bfd_target **bfd_target_vector;
   char *dummy_name;
   int t;
 
@@ -2512,7 +2512,7 @@
      int first;
      int last;
 {
-  extern bfd_target *bfd_target_vector[];
+  extern bfd_target **bfd_target_vector;
   int t, a;
   char *dummy_name;
 
@@ -2579,7 +2579,7 @@
 display_target_tables ()
 {
   int t, columns;
-  extern bfd_target *bfd_target_vector[];
+  extern bfd_target **bfd_target_vector;
   char *colum;
 
   columns = 0;