diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2012-06-17 07:28:28 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2012-06-17 07:28:28 +0000 |
commit | 8c2d358066a4fba84bd91100901b718343ae8b04 (patch) | |
tree | b5e55625a3dc5471ceba8ee85a6095f288ee8cbc /bfd/elf32-cris.c | |
parent | ffb07b60ab53a702a56f55dcfb9819dc0c6e30dd (diff) | |
download | binutils-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.c | 3 |
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; |