summaryrefslogtreecommitdiff
path: root/bfd/elf32-cris.c
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2002-11-07 13:28:04 +0000
committerHans-Peter Nilsson <hp@axis.com>2002-11-07 13:28:04 +0000
commit34897d396108b274afb944d68b1f3379e2cb4ff8 (patch)
treeb558c2188f700c849fb80f05b86ec2e7cc254281 /bfd/elf32-cris.c
parent2f199b78b7e0d10a05175959a178116233e9385e (diff)
downloadbinutils-redhat-34897d396108b274afb944d68b1f3379e2cb4ff8.tar.gz
* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOT,
case R_CRIS_32_GOT>: Correct test for filling in constant .got contents, enabling for a non-DSO, for symbols defined in the program with --export-dynamic.
Diffstat (limited to 'bfd/elf32-cris.c')
-rw-r--r--bfd/elf32-cris.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c
index 8eff52dd5a..dfbdbe75f6 100644
--- a/bfd/elf32-cris.c
+++ b/bfd/elf32-cris.c
@@ -1022,7 +1022,8 @@ cris_elf_relocate_section (output_bfd, info, input_bfd, input_section,
BFD_ASSERT (off != (bfd_vma) -1);
if (!elf_hash_table (info)->dynamic_sections_created
- || (! info->shared && h->dynindx == -1)
+ || (! info->shared
+ && (h->elf_link_hash_flags & ELF_LINK_HASH_DEF_REGULAR))
|| (info->shared
&& (info->symbolic || h->dynindx == -1)
&& (h->elf_link_hash_flags & ELF_LINK_HASH_DEF_REGULAR)))