summaryrefslogtreecommitdiff
path: root/bfd/elf32-mips.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>1999-08-03 16:58:26 +0000
committerMark Mitchell <mark@codesourcery.com>1999-08-03 16:58:26 +0000
commit08a7d068f2cfd2a6e21025ffd63aa30e29389fb5 (patch)
treeee61e52422aa83ff3e758b6e954d4678893f58a5 /bfd/elf32-mips.c
parent104fe39d65ac490d3a502b5ee9c12565ba05078b (diff)
downloadbinutils-redhat-08a7d068f2cfd2a6e21025ffd63aa30e29389fb5.tar.gz
* elf32-mips.c (mips_elf_calculate_relocation): Restore
_DYNAMIC_LINK handling and handling of undefined symbols in shared libraries.
Diffstat (limited to 'bfd/elf32-mips.c')
-rw-r--r--bfd/elf32-mips.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c
index 945d3a5afe..dd2c55ce0b 100644
--- a/bfd/elf32-mips.c
+++ b/bfd/elf32-mips.c
@@ -5877,6 +5877,19 @@ mips_elf_calculate_relocation (abfd,
and check to see if they exist by looking at their
addresses. */
symbol = 0;
+ else if (info->shared && !info->symbolic && !info->no_undefined)
+ relocation = 0;
+ else if (strcmp (h->root.root.root.string, "_DYNAMIC_LINK") == 0)
+ {
+ /* If this is a dynamic link, we should have created a
+ _DYNAMIC_LINK symbol in mips_elf_create_dynamic_sections.
+ Otherwise, we should define the symbol with a value of 0.
+ FIXME: It should probably get into the symbol table
+ somehow as well. */
+ BFD_ASSERT (! info->shared);
+ BFD_ASSERT (bfd_get_section_by_name (abfd, ".dynamic") == NULL);
+ relocation = 0;
+ }
else
{
(*info->callbacks->undefined_symbol)