bfd/
[deliverable/binutils-gdb.git] / bfd / xcofflink.c
index da5944eb818ff89b0918d1f30206db5da2171adf..f02f66862f0ce0755f56b9a98fad0c590e39cd6b 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.  */
This page took 0.023758 seconds and 4 git commands to generate.