* ldlang.c (sort_def_symbol, lang_one_common): Don't handle
authorAlan Modra <amodra@gmail.com>
Mon, 13 Jun 2011 00:59:43 +0000 (00:59 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 13 Jun 2011 00:59:43 +0000 (00:59 +0000)
warning symbols here.
* emultempl/pe.em (pr_sym): Remove redundant test.
* emultempl/pep.em (pr_sym): Likewise.

ld/ChangeLog
ld/emultempl/pe.em
ld/emultempl/pep.em
ld/ldlang.c

index d5595c604eb4d24ad2386d7b42e5c329d4967213..0a6a8076f5af846306c856746a1505fb8629f114 100644 (file)
@@ -1,3 +1,10 @@
+2011-06-13  Alan Modra  <amodra@gmail.com>
+
+       * 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.
+
 2011-06-09  Nick Clifton  <nickc@redhat.com>
 
        PR ld/12845
index 6369606e2a564edd9b00ddc3c61f76516d866b1e..5737fc0985616902fd05b1f3ec26dc4a031c5799 100644 (file)
@@ -1197,8 +1197,7 @@ This should work unless it involves constant data structures referencing symbols
 static bfd_boolean
 pr_sym (struct bfd_hash_entry *h, void *inf ATTRIBUTE_UNUSED)
 {
-  if (pe_dll_extra_pe_debug)
-    printf ("+%s\n", h->string);
+  printf ("+%s\n", h->string);
 
   return TRUE;
 }
index 0c1dfb97539427fdfc02d8754e00e4a85bbd99fe..e02ddcf5ea7b1526d624c3f13cbd0f793324609b 100644 (file)
@@ -1130,8 +1130,7 @@ pep_find_data_imports (void)
 static bfd_boolean
 pr_sym (struct bfd_hash_entry *h, void *inf ATTRIBUTE_UNUSED)
 {
-  if (pep_dll_extra_pe_debug)
-    printf ("+%s\n", h->string);
+  printf ("+%s\n", h->string);
 
   return TRUE;
 }
index 6289f2f866f180b53bca24e264049c0c6067061f..7e06613b5100699d23747d9c13e0538e0e3eb1da 100644 (file)
@@ -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;
 
This page took 0.034048 seconds and 4 git commands to generate.