summaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2011-06-13 00:59:42 +0000
committerAlan Modra <amodra@bigpond.net.au>2011-06-13 00:59:42 +0000
commit6c409ed89fc05b512961e703bb5778acd33a0b8b (patch)
tree0441be2651103306c8f334a35235e48953054e01 /ld/ldlang.c
parentc84058dcb7decb01ee216bb851f0bfc2afbb7710 (diff)
downloadbinutils-redhat-6c409ed89fc05b512961e703bb5778acd33a0b8b.tar.gz
* ldlang.c (sort_def_symbol, lang_one_common): Don't handle
warning symbols here. * emultempl/pe.em (pr_sym): Remove redundant test. * emultempl/pep.em (pr_sym): Likewise.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 6289f2f866..7e06613b51 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -2100,9 +2100,6 @@ static bfd_boolean
sort_def_symbol (struct bfd_link_hash_entry *hash_entry,
void *info ATTRIBUTE_UNUSED)
{
- if (hash_entry->type == bfd_link_hash_warning)
- hash_entry = (struct bfd_link_hash_entry *) hash_entry->u.i.link;
-
if (hash_entry->type == bfd_link_hash_defined
|| hash_entry->type == bfd_link_hash_defweak)
{
@@ -5885,9 +5882,6 @@ lang_one_common (struct bfd_link_hash_entry *h, void *info)
bfd_vma size;
asection *section;
- if (h->type == bfd_link_hash_warning)
- h = h->u.i.link;
-
if (h->type != bfd_link_hash_common)
return TRUE;