summaryrefslogtreecommitdiff
path: root/bfd/elf32-cris.c
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2012-06-17 07:28:28 +0000
committerHans-Peter Nilsson <hp@axis.com>2012-06-17 07:28:28 +0000
commit8c2d358066a4fba84bd91100901b718343ae8b04 (patch)
treeb5e55625a3dc5471ceba8ee85a6095f288ee8cbc /bfd/elf32-cris.c
parentffb07b60ab53a702a56f55dcfb9819dc0c6e30dd (diff)
downloadbinutils-redhat-8c2d358066a4fba84bd91100901b718343ae8b04.tar.gz
* elf32-cris.c (cris_elf_relocate_section): <R_CRIS_32_IE>
<R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>: Handle references to thread common symbols.
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 1f7d20d44c..3710d47b70 100644
--- a/bfd/elf32-cris.c
+++ b/bfd/elf32-cris.c
@@ -1877,7 +1877,8 @@ cris_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
return FALSE;
}
- if (!info->shared && (h == NULL || h->def_regular))
+ if (!info->shared
+ && (h == NULL || h->def_regular || ELF_COMMON_DEF_P (h)))
{
/* Known contents of the GOT. */
bfd_vma off;