aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2009-03-14 09:36:11 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2009-03-14 09:36:11 +0000
commit670562e9d1d1a37e6287a291b8873218be0944cb (patch)
tree97f324fea469e0cdb16265962ff9ad48f98a1ed7 /bfd
parentb64232cca5353c35c503dfe096afec18ac3c90f3 (diff)
downloadbinutils-670562e9d1d1a37e6287a291b8873218be0944cb.zip
binutils-670562e9d1d1a37e6287a291b8873218be0944cb.tar.gz
binutils-670562e9d1d1a37e6287a291b8873218be0944cb.tar.bz2
bfd/
* xcofflink.c (xcoff_build_ldsyms): Give imported descriptors class XMC_DS rather than XMC_UA.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/xcofflink.c7
2 files changed, 11 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 79e3cb4..25fce9f 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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.
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. */