|
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. |