From d918dd357ccf5bf69514652f3eb7a3de030ef2f8 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 2 Nov 2001 19:46:59 +0000 Subject: [PATCH] 2001-11-02 H.J. Lu * elf32-mips.c (mips_elf_calculate_relocation): Don't create dynamic relocation for symbols defined in regular objects when creating executables. --- bfd/ChangeLog | 6 ++++++ bfd/elf32-mips.c | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 83390338bb4..2870723e77a 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2001-11-02 H.J. Lu + + * 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 * configure.in (ALL_LINGUAS): Add "fr". diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c index 7fee3c56ac6..6b0c7a46adf 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 -- 2.30.2