forked from Imagelibrary/binutils-gdb
Revert "objcopy fixes for commit 68bbe1183379"
This reverts commit ef166f451f.
This commit is contained in:
@@ -1251,9 +1251,6 @@ is_specified_symbol_predicate (void **slot, void *data)
|
|||||||
static bool
|
static bool
|
||||||
is_specified_symbol (const char *name, htab_t htab)
|
is_specified_symbol (const char *name, htab_t htab)
|
||||||
{
|
{
|
||||||
if (name == NULL)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
if (wildcard)
|
if (wildcard)
|
||||||
{
|
{
|
||||||
struct is_specified_symbol_predicate_data data;
|
struct is_specified_symbol_predicate_data data;
|
||||||
@@ -1579,9 +1576,6 @@ filter_symbols (bfd *abfd, bfd *obfd, asymbol **osyms,
|
|||||||
bool rem_leading_char;
|
bool rem_leading_char;
|
||||||
bool add_leading_char;
|
bool add_leading_char;
|
||||||
|
|
||||||
if (name == NULL)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
undefined = bfd_is_und_section (bfd_asymbol_section (sym));
|
undefined = bfd_is_und_section (bfd_asymbol_section (sym));
|
||||||
|
|
||||||
if (add_sym_list)
|
if (add_sym_list)
|
||||||
@@ -1596,12 +1590,12 @@ filter_symbols (bfd *abfd, bfd *obfd, asymbol **osyms,
|
|||||||
{
|
{
|
||||||
char *new_name;
|
char *new_name;
|
||||||
|
|
||||||
if (name[0] == '_'
|
if (name != NULL
|
||||||
|
&& name[0] == '_'
|
||||||
&& name[1] == '_'
|
&& name[1] == '_'
|
||||||
&& strcmp (name + (name[2] == '_'), "__gnu_lto_slim") == 0)
|
&& strcmp (name + (name[2] == '_'), "__gnu_lto_slim") == 0)
|
||||||
{
|
{
|
||||||
fatal (_("redefining symbols does not work"
|
fatal (_("redefining symbols does not work on LTO-compiled object files"));
|
||||||
" on LTO-compiled object files"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
new_name = (char *) lookup_sym_redefinition (name);
|
new_name = (char *) lookup_sym_redefinition (name);
|
||||||
|
|||||||
Reference in New Issue
Block a user