From e523bade001bcca44af3fe627e0eec868ac9ef81 Mon Sep 17 00:00:00 2001 From: Kaz Kojima Date: Tue, 17 Apr 2012 21:58:50 +0000 Subject: * elf32-sh.c (allocate_dynrelocs): Don't allocate dynamic relocations when LE conversion happens on the IE tls symbol. --- bfd/elf32-sh.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bfd/elf32-sh.c') diff --git a/bfd/elf32-sh.c b/bfd/elf32-sh.c index 9bc2dd5a79..87d4e4fcbc 100644 --- a/bfd/elf32-sh.c +++ b/bfd/elf32-sh.c @@ -3104,6 +3104,9 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf) && (got_type == GOT_NORMAL || got_type == GOT_FUNCDESC)) htab->srofixup->size += 4; } + /* No dynamic relocations required when IE->LE conversion happens. */ + else if (got_type == GOT_TLS_IE && !h->def_dynamic && !info->shared) + ; /* R_SH_TLS_IE_32 needs one dynamic relocation if dynamic, R_SH_TLS_GD needs one if local symbol and two if global. */ else if ((got_type == GOT_TLS_GD && h->dynindx == -1) -- cgit v1.2.1