aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-mips.c
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
commita4d0f1817b4f437143b3d2c482213a8e626442ff (patch)
treee2405ce3cfa7a67c54e1354a0cba95fa3c94324f /bfd/elfxx-mips.c
parentc98bad6f54520128cefc10718045b5a4ac69aa99 (diff)
downloadgdb-a4d0f1817b4f437143b3d2c482213a8e626442ff.zip
gdb-a4d0f1817b4f437143b3d2c482213a8e626442ff.tar.gz
gdb-a4d0f1817b4f437143b3d2c482213a8e626442ff.tar.bz2
* elfxx-mips.c (mips_elf_calculate_relocation): Test only for
the dynamic link symbol actually in use.
Diffstat (limited to 'bfd/elfxx-mips.c')
-rw-r--r--bfd/elfxx-mips.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index 3505f62..eaf2180 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