From 670562e9d1d1a37e6287a291b8873218be0944cb Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Sat, 14 Mar 2009 09:36:11 +0000 Subject: [PATCH] bfd/ * xcofflink.c (xcoff_build_ldsyms): Give imported descriptors class XMC_DS rather than XMC_UA. --- bfd/ChangeLog | 5 +++++ bfd/xcofflink.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 79e3cb44c44..25fce9fea38 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2009-03-14 Richard Sandiford + + * xcofflink.c (xcoff_build_ldsyms): Give imported descriptors + class XMC_DS rather than XMC_UA. + 2009-03-14 Richard Sandiford * bfd-in.h (bfd_xcoff_size_dynamic_sections): Replace the diff --git a/bfd/xcofflink.c b/bfd/xcofflink.c index da5944eb818..f02f66862f0 100644 --- a/bfd/xcofflink.c +++ b/bfd/xcofflink.c @@ -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. */ -- 2.30.2