OSDN Git Service

bfd/
authorrsandifo <rsandifo>
Sat, 14 Mar 2009 09:36:11 +0000 (09:36 +0000)
committerrsandifo <rsandifo>
Sat, 14 Mar 2009 09:36:11 +0000 (09:36 +0000)
* xcofflink.c (xcoff_build_ldsyms): Give imported descriptors
class XMC_DS rather than XMC_UA.

bfd/ChangeLog
bfd/xcofflink.c

index 79e3cb4..25fce9f 100644 (file)
@@ -1,5 +1,10 @@
 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
 
+       * xcofflink.c (xcoff_build_ldsyms): Give imported descriptors
+       class XMC_DS rather than XMC_UA.
+
+2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
+
        * bfd-in.h (bfd_xcoff_size_dynamic_sections): Replace the
        bfd_boolean export_defineds parameter with an unsigned int
        auto_export_flags parameter.
index da5944e..f02f668 100644 (file)
@@ -3128,7 +3128,12 @@ xcoff_build_ldsyms (struct xcoff_link_hash_entry *h, void * p)
     }
 
   if ((h->flags & XCOFF_IMPORT) != 0)
-    h->ldsym->l_ifile = h->ldindx;
+    {
+      /* Give imported descriptors class XMC_DS rather than XMC_UA.  */
+      if ((h->flags & XCOFF_DESCRIPTOR) != 0)
+       h->smclas = XMC_DS;
+      h->ldsym->l_ifile = h->ldindx;
+    }
 
   /* The first 3 symbol table indices are reserved to indicate the
      data, text and bss sections.  */