From d4a77f3f0ccde6aac5052f33372cf5ff61cdd803 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 24 Feb 2010 14:21:51 +0000 Subject: [PATCH] PR binutils/10858 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Ise SYMBOL_REFERENCES_LOCAL to exclude entries from the dynamic symbol table. --- bfd/ChangeLog | 7 +++++++ bfd/elfxx-mips.c | 4 +--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 1ecd0346d7f..7a0be68a860 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2010-02-24 Alan Modra + + PR binutils/10858 + * elfxx-mips.c (mips_elf_create_dynamic_relocation): Ise + SYMBOL_REFERENCES_LOCAL to exclude entries from the dynamic symbol + table. + 2010-02-23 Andrew Zabolotny PR binutils/11297 diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index 6f686bbf8f8..a94e60945a1 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -5755,9 +5755,7 @@ mips_elf_create_dynamic_relocation (bfd *output_bfd, /* We must now calculate the dynamic symbol table index to use in the relocation. */ - if (h != NULL - && (!h->root.def_regular - || (info->shared && !info->symbolic && !h->root.forced_local))) + if (h != NULL && ! SYMBOL_REFERENCES_LOCAL (info, &h->root)) { indx = h->root.dynindx; if (SGI_COMPAT (output_bfd)) -- 2.30.2