summaryrefslogtreecommitdiff
path: root/bfd/elf32-cris.c
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2009-03-24 03:32:31 +0000
committerHans-Peter Nilsson <hp@axis.com>2009-03-24 03:32:31 +0000
commitcedd0df2e21d2721c5538efe4981d55f90e1dabd (patch)
treefdd3dc885619b8eec0ae98e4c05b9f29581fc116 /bfd/elf32-cris.c
parent95964fc43bf680dd87e5153aecbc3a5c6f15ca7c (diff)
downloadbinutils-redhat-cedd0df2e21d2721c5538efe4981d55f90e1dabd.tar.gz
* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
<R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: Don't include the TLS size when emitting a known TP offset in the GOT.
Diffstat (limited to 'bfd/elf32-cris.c')
-rw-r--r--bfd/elf32-cris.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c
index bd6de292a6..6dc669a493 100644
--- a/bfd/elf32-cris.c
+++ b/bfd/elf32-cris.c
@@ -1735,9 +1735,8 @@ cris_elf_relocate_section (output_bfd, info, input_bfd, input_section,
bfd_vma off;
/* The symbol is defined in the program, so just write
- (1, -prog_tls_size+known_tpoffset) into the GOT. */
+ (1, known_tpoffset) into the GOT. */
relocation -= elf_hash_table (info)->tls_sec->vma;
- relocation -= elf_hash_table (info)->tls_size;
if (h != NULL)
{