aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-11-02 19:46:59 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-11-02 19:46:59 +0000
commitd918dd357ccf5bf69514652f3eb7a3de030ef2f8 (patch)
treebc308922069c29e8d59abe2d17339dbfc5e91370
parent3c62831e20dc51f9d86aa471570e8451dd253bf6 (diff)
downloadgdb-d918dd357ccf5bf69514652f3eb7a3de030ef2f8.zip
gdb-d918dd357ccf5bf69514652f3eb7a3de030ef2f8.tar.gz
gdb-d918dd357ccf5bf69514652f3eb7a3de030ef2f8.tar.bz2
2001-11-02 H.J. Lu <hjl@gnu.org>
* elf32-mips.c (mips_elf_calculate_relocation): Don't create dynamic relocation for symbols defined in regular objects when creating executables.
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/elf32-mips.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 8339033..2870723 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+2001-11-02 H.J. Lu <hjl@gnu.org>
+
+ * elf32-mips.c (mips_elf_calculate_relocation): Don't create
+ dynamic relocation for symbols defined in regular objects when
+ creating executables.
+
2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
* configure.in (ALL_LINGUAS): Add "fr".
diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c
index 7fee3c5..6b0c7a4 100644
--- a/bfd/elf32-mips.c
+++ b/bfd/elf32-mips.c
@@ -6321,8 +6321,10 @@ mips_elf_calculate_relocation (abfd,
if ((info->shared
|| (elf_hash_table (info)->dynamic_sections_created
&& h != NULL
- && ((h->root.elf_link_hash_flags & ELF_LINK_HASH_DEF_DYNAMIC)
- != 0)))
+ && ((h->root.elf_link_hash_flags
+ & ELF_LINK_HASH_DEF_DYNAMIC) != 0)
+ && ((h->root.elf_link_hash_flags
+ & ELF_LINK_HASH_DEF_REGULAR) == 0)))
&& (input_section->flags & SEC_ALLOC) != 0)
{
/* If we're creating a shared library, or this relocation is