diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2012-06-17 07:28:29 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2012-06-17 07:28:29 +0000 |
commit | 26a48bb3a9c962068b83ff38b0818956c961da74 (patch) | |
tree | b843a95c3803d4d80022705c4d08cf1e58d21a19 /bfd/elf32-cris.c | |
parent | c5753f6406be13320c7740038e9662a87afdcb84 (diff) | |
download | gdb-26a48bb3a9c962068b83ff38b0818956c961da74.zip gdb-26a48bb3a9c962068b83ff38b0818956c961da74.tar.gz gdb-26a48bb3a9c962068b83ff38b0818956c961da74.tar.bz2 |
* 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 1f7d20d..3710d47 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; |