summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2004-08-01 20:13:16 +0000
committerThiemo Seufer <ths@networkno.de>2004-08-01 20:13:16 +0000
commit253431a9e32f070ced26474bc003766718bc0817 (patch)
treee599c444442ff0c37aeeca9021fd24a05c8cd4d9 /bfd
parentc1746c80e2a98c9520df4cc765e8307a943eb368 (diff)
downloadbinutils-redhat-253431a9e32f070ced26474bc003766718bc0817.tar.gz
* elfxx-mips.c (mips_elf_calculate_relocation): Test only for
the dynamic link symbol actually in use.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog7
-rw-r--r--bfd/elfxx-mips.c4
2 files changed, 8 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index caa9bc4719..c431b3ec19 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,8 +1,13 @@
+2004-08-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+ * elfxx-mips.c (mips_elf_calculate_relocation): Test only for
+ the dynamic link symbol actually in use.
+
2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
* elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Handle bfd_link_hash_new
-2004-07-31 Joel Brobecker <brobecker@gnat.com>
+2004-07-31 Joel Brobecker <brobecker@gnat.com>
Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
* elfxx-mips.c (_bfd_mips_elf_symbol_processing): Handle
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index 3505f62fbf..eaf2180aee 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -3109,8 +3109,8 @@ mips_elf_calculate_relocation (bfd *abfd, bfd *input_bfd,
else if (info->unresolved_syms_in_objects == RM_IGNORE
&& ELF_ST_VISIBILITY (h->root.other) == STV_DEFAULT)
symbol = 0;
- else if (strcmp (*namep, "_DYNAMIC_LINK") == 0 ||
- strcmp (*namep, "_DYNAMIC_LINKING") == 0)
+ else if (strcmp (*namep, SGI_COMPAT (input_bfd)
+ ? "_DYNAMIC_LINK" : "_DYNAMIC_LINKING") == 0)
{
/* If this is a dynamic link, we should have created a
_DYNAMIC_LINK symbol or _DYNAMIC_LINKING(for normal mips) symbol