summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2013-02-16 17:50:20 +0000
committerH.J. Lu <hjl.tools@gmail.com>2013-02-16 17:50:20 +0000
commitd69670d501f1b6a4d587f6108b1a462ace4cc376 (patch)
treed766ecca5d75a5a73100d653a266a263fe121155
parentb64fb44af4f416fbbbda3de03fcfff61d80c841c (diff)
downloadbinutils-redhat-d69670d501f1b6a4d587f6108b1a462ace4cc376.tar.gz
Also trace symbol from the IR bfd
PR ld/15141 * plugin.c (plugin_notice): Also trace symbol from the IR bfd.
-rw-r--r--ld/ChangeLog7
-rw-r--r--ld/plugin.c8
2 files changed, 10 insertions, 5 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 166015b79e..c8997592d8 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2013-02-16 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/15141
+ * plugin.c (plugin_notice): Also trace symbol from the IR bfd.
+
2013-02-15 Kai Tietz <ktietz@redhat.com>
* scripttempl/pep.sc (.xdata): Merge .xdata* into .xdata section.
@@ -20,7 +25,7 @@
rather than userdata->flags.just_syms.
2013-02-06 Sandra Loosemore <sandra@codesourcery.com>
- Andrew Jenner <andrew@codesourcery.com>
+ Andrew Jenner <andrew@codesourcery.com>
Based on patches from Altera Corporation.
diff --git a/ld/plugin.c b/ld/plugin.c
index da99e7743c..435f4663b2 100644
--- a/ld/plugin.c
+++ b/ld/plugin.c
@@ -962,14 +962,14 @@ plugin_notice (struct bfd_link_info *info,
{
bfd *sym_bfd;
- /* No further processing if this def/ref is from an IR dummy BFD. */
+ /* Nothing to do here if this def/ref is from an IR dummy BFD. */
if (is_ir_dummy_bfd (abfd))
- return TRUE;
+ ;
/* Making an indirect symbol counts as a reference unless this
is a brand new symbol. */
- if (bfd_is_ind_section (section)
- || (flags & BSF_INDIRECT) != 0)
+ else if (bfd_is_ind_section (section)
+ || (flags & BSF_INDIRECT) != 0)
{
if (h->type != bfd_link_hash_new)
{