View | Details | Raw Unified | Return to bug 165771
Collapse All | Expand All

(-)devel/binutils/files/patch-gold__archive.h (+11 lines)
Added Link Here
1
--- gold/archive.h.orig	2011-06-02 22:13:23.000000000 +0200
2
+++ gold/archive.h	2012-03-05 18:57:24.000000000 +0100
3
@@ -40,7 +40,7 @@ class Input_group;
4
 class Layout;
5
 class Symbol_table;
6
 class Object;
7
-class Read_symbols_data;
8
+struct Read_symbols_data;
9
 class Input_file_lib;
10
 class Incremental_archive_entry;
11
 
(-)devel/binutils/files/patch-gold__arm.cc (+40 lines)
Added Link Here
1
--- gold/arm.cc.orig	2011-11-21 10:40:12.000000000 +0100
2
+++ gold/arm.cc	2012-03-05 20:12:40.000000000 +0100
3
@@ -2372,8 +2372,8 @@ class Target_arm : public Sized_target<3
4
 			       unsigned char* preloc_out);
5
  
6
   // Return whether SYM is defined by the ABI.
7
-  bool
8
-  do_is_defined_by_abi(Symbol* sym) const
9
+  virtual bool
10
+  do_is_defined_by_abi(const Symbol* sym) const
11
   { return strcmp(sym->name(), "__tls_get_addr") == 0; }
12
 
13
   // Return whether there is a GOT section.
14
@@ -7039,7 +7039,7 @@ Stub_addend_reader<elfcpp::SHT_REL, big_
15
     const unsigned char* view,
16
     const typename Reloc_types<elfcpp::SHT_REL, 32, big_endian>::Reloc&) const
17
 {
18
-  typedef struct Arm_relocate_functions<big_endian> RelocFuncs;
19
+  typedef class Arm_relocate_functions<big_endian> RelocFuncs;
20
   
21
   switch (r_type)
22
     {
23
@@ -11778,7 +11778,7 @@ Target_arm<big_endian>::scan_span_for_co
24
 	  // Check if we have an offending branch instruction.
25
 	  uint16_t upper_insn = (insn >> 16) & 0xffffU;
26
 	  uint16_t lower_insn = insn & 0xffffU;
27
-	  typedef struct Arm_relocate_functions<big_endian> RelocFuncs;
28
+	  typedef class Arm_relocate_functions<big_endian> RelocFuncs;
29
 
30
 	  if (cortex_a8_reloc != NULL
31
 	      && cortex_a8_reloc->reloc_stub() != NULL)
32
@@ -11881,7 +11881,7 @@ Target_arm<big_endian>::apply_cortex_a8_
33
   Valtype lower_insn = elfcpp::Swap<16, big_endian>::readval(wv + 1);
34
   off_t branch_offset = stub_address - (insn_address + 4);
35
 
36
-  typedef struct Arm_relocate_functions<big_endian> RelocFuncs;
37
+  typedef class Arm_relocate_functions<big_endian> RelocFuncs;
38
   switch (stub->stub_template()->type())
39
     {
40
     case arm_stub_a8_veneer_b_cond:
(-)devel/binutils/files/patch-gold__gc.h (+11 lines)
Added Link Here
1
--- gold/gc.h.orig	2011-05-24 23:41:10.000000000 +0200
2
+++ gold/gc.h	2012-03-05 19:00:49.000000000 +0100
3
@@ -40,7 +40,7 @@ template<int size, bool big_endian>
4
 class Sized_relobj_file;
5
 
6
 template<int sh_type, int size, bool big_endian>
7
-class Reloc_types;
8
+struct Reloc_types;
9
 
10
 class Output_section;
11
 class General_options;
(-)devel/binutils/files/patch-gold__object.h (+11 lines)
Added Link Here
1
--- gold/object.h.orig	2011-08-01 20:25:21.000000000 +0200
2
+++ gold/object.h	2012-03-05 18:59:19.000000000 +0100
3
@@ -47,7 +47,7 @@ class Pluginobj;
4
 class Dynobj;
5
 class Object_merge_map;
6
 class Relocatable_relocs;
7
-class Symbols_data;
8
+struct Symbols_data;
9
 
10
 template<typename Stringpool_char>
11
 class Stringpool_template;
(-)devel/binutils/files/patch-gold__reloc.h (+11 lines)
Added Link Here
1
--- gold/reloc.h.orig	2011-11-21 10:37:51.000000000 +0100
2
+++ gold/reloc.h	2012-03-05 18:58:15.000000000 +0100
3
@@ -37,7 +37,7 @@ namespace gold
4
 class General_options;
5
 class Object;
6
 class Relobj;
7
-class Read_relocs_data;
8
+struct Read_relocs_data;
9
 class Symbol;
10
 class Layout;
11
 class Output_data;
(-)devel/binutils/files/patch-gold__script.cc (+65 lines)
Added Link Here
1
--- gold/script.cc.orig	2011-06-29 23:57:14.000000000 +0200
2
+++ gold/script.cc	2012-03-05 20:05:49.000000000 +0100
3
@@ -2871,7 +2871,7 @@ script_add_search_dir(void* closurev, co
4
   else if (!closure->command_line()->options().nostdlib())
5
     {
6
       std::string s = "-L" + std::string(option, length);
7
-      script_parse_option(closurev, s.c_str(), s.size());
8
+      ::script_parse_option(closurev, s.c_str(), s.size());
9
     }
10
 }
11
 
12
@@ -3011,7 +3011,7 @@ version_script_push_lang(void* closurev,
13
       snprintf(buf, langlen + 100,
14
 	       _("unrecognized version script language '%s'"),
15
 	       language.c_str());
16
-      yyerror(closurev, buf);
17
+      ::yyerror(closurev, buf);
18
       delete[] buf;
19
       code = Version_script_info::LANGUAGE_C;
20
     }
21
@@ -3165,7 +3165,7 @@ script_string_sort_list_add(String_sort_
22
 			    const struct Wildcard_section* string_sort)
23
 {
24
   if (pv == NULL)
25
-    return script_new_string_sort_list(string_sort);
26
+    return ::script_new_string_sort_list(string_sort);
27
   else
28
     {
29
       pv->push_back(*string_sort);
30
@@ -3189,7 +3189,7 @@ extern "C" String_list_ptr
31
 script_string_list_push_back(String_list_ptr pv, const char* str, size_t len)
32
 {
33
   if (pv == NULL)
34
-    return script_new_string_list(str, len);
35
+    return ::script_new_string_list(str, len);
36
   else
37
     {
38
       pv->push_back(std::string(str, len));
39
@@ -3261,7 +3261,7 @@ script_phdr_string_to_type(void* closure
40
     if (namelen == phdr_type_names[i].namelen
41
 	&& strncmp(name, phdr_type_names[i].name, namelen) == 0)
42
       return phdr_type_names[i].val;
43
-  yyerror(closurev, _("unknown PHDR type (try integer)"));
44
+  ::yyerror(closurev, _("unknown PHDR type (try integer)"));
45
   return elfcpp::PT_NULL;
46
 }
47
 
48
@@ -3336,7 +3336,7 @@ script_parse_memory_attr(void* closurev,
49
       case 'l':
50
 	attributes |= MEM_INITIALIZED; break;
51
       default:
52
-	yyerror(closurev, _("unknown MEMORY attribute"));
53
+	::yyerror(closurev, _("unknown MEMORY attribute"));
54
       }
55
 
56
   if (invert)
57
@@ -3349,7 +3349,7 @@ extern "C" void
58
 script_include_directive(void* closurev, const char*, size_t)
59
 {
60
   // FIXME: Implement ?
61
-  yyerror (closurev, _("GOLD does not currently support INCLUDE directives"));
62
+  ::yyerror (closurev, _("GOLD does not currently support INCLUDE directives"));
63
 }
64
 
65
 // Functions for memory regions.
(-)devel/binutils/files/patch-gold__target.h (+11 lines)
Added Link Here
1
--- gold/target.h.orig	2011-07-09 00:48:08.000000000 +0200
2
+++ gold/target.h	2012-03-05 18:52:40.000000000 +0100
3
@@ -49,7 +49,7 @@ template<int size, bool big_endian>
4
 class Sized_relobj_file;
5
 class Relocatable_relocs;
6
 template<int size, bool big_endian>
7
-class Relocate_info;
8
+struct Relocate_info;
9
 class Reloc_symbol_changes;
10
 class Symbol;
11
 template<int size>

Return to bug 165771