diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2009-03-14 09:36:11 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2009-03-14 09:36:11 +0000 |
commit | 670562e9d1d1a37e6287a291b8873218be0944cb (patch) | |
tree | 97f324fea469e0cdb16265962ff9ad48f98a1ed7 /bfd/xcofflink.c | |
parent | b64232cca5353c35c503dfe096afec18ac3c90f3 (diff) | |
download | gdb-670562e9d1d1a37e6287a291b8873218be0944cb.zip gdb-670562e9d1d1a37e6287a291b8873218be0944cb.tar.gz gdb-670562e9d1d1a37e6287a291b8873218be0944cb.tar.bz2 |
bfd/
* xcofflink.c (xcoff_build_ldsyms): Give imported descriptors
class XMC_DS rather than XMC_UA.
Diffstat (limited to 'bfd/xcofflink.c')
-rw-r--r-- | bfd/xcofflink.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bfd/xcofflink.c b/bfd/xcofflink.c index da5944e..f02f668 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. */ |