aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-mips.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2010-02-24 14:21:51 +0000
committerNick Clifton <nickc@redhat.com>2010-02-24 14:21:51 +0000
commitd4a77f3f0ccde6aac5052f33372cf5ff61cdd803 (patch)
tree50f05bde8b72a690cc9a771a1c8282a2d7d46581 /bfd/elfxx-mips.c
parentc9ee9c4cb81bcf7cee85eb564fa9b111143cd307 (diff)
downloadfsf-binutils-gdb-d4a77f3f0ccde6aac5052f33372cf5ff61cdd803.zip
fsf-binutils-gdb-d4a77f3f0ccde6aac5052f33372cf5ff61cdd803.tar.gz
fsf-binutils-gdb-d4a77f3f0ccde6aac5052f33372cf5ff61cdd803.tar.bz2
PR binutils/10858
* elfxx-mips.c (mips_elf_create_dynamic_relocation): Ise SYMBOL_REFERENCES_LOCAL to exclude entries from the dynamic symbol table.
Diffstat (limited to 'bfd/elfxx-mips.c')
-rw-r--r--bfd/elfxx-mips.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index 6f686bb..a94e609 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))