From 019c5a2e3fc8afe601a2e40c470e90ae0b03edf6 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Tue, 24 Mar 2009 03:32:31 +0000 Subject: [PATCH] * elf32-cris.c (cris_elf_relocate_section) : Don't include the TLS size when emitting a known TP offset in the GOT. --- bfd/ChangeLog | 6 ++++++ bfd/elf32-cris.c | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 9dfb87ed6bb..8336ac42928 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2009-03-24 Hans-Peter Nilsson + + * elf32-cris.c (cris_elf_relocate_section) + : Don't include the TLS size + when emitting a known TP offset in the GOT. + 2009-03-23 Alan Modra * elf64-ppc.c (synthetic_opd): Delete. diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c index bd6de292a67..6dc669a4939 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) { -- 2.30.2