* ldlang.c (lookup_name): Delete dead code. Remove FIXMEs.
This commit is contained in:
parent
cae6199cc2
commit
87aa7f19be
2 changed files with 7 additions and 9 deletions
|
@ -1,3 +1,7 @@
|
|||
2006-06-05 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* ldlang.c (lookup_name): Delete dead code. Remove FIXMEs.
|
||||
|
||||
2006-06-03 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* emultempl/elf32.em (global_found): Make it a pointer.
|
||||
|
|
10
ld/ldlang.c
10
ld/ldlang.c
|
@ -2216,10 +2216,7 @@ lookup_name (const char *name)
|
|||
via the search directory lookup mechanism. */
|
||||
const char *filename = search->local_sym_name;
|
||||
|
||||
if (filename == NULL && name == NULL)
|
||||
return search;
|
||||
if (filename != NULL
|
||||
&& name != NULL
|
||||
&& strcmp (filename, name) == 0)
|
||||
break;
|
||||
}
|
||||
|
@ -2229,11 +2226,8 @@ lookup_name (const char *name)
|
|||
default_target, FALSE);
|
||||
|
||||
/* If we have already added this file, or this file is not real
|
||||
(FIXME: can that ever actually happen?) or the name is NULL
|
||||
(FIXME: can that ever actually happen?) don't add this file. */
|
||||
if (search->loaded
|
||||
|| ! search->real
|
||||
|| search->filename == NULL)
|
||||
don't add this file. */
|
||||
if (search->loaded || !search->real)
|
||||
return search;
|
||||
|
||||
if (! load_symbols (search, NULL))
|
||||
|
|
Loading…
Reference in a new issue