diff options
author | Kaz Kojima <kkojima@rr.iij4u.or.jp> | 2012-04-17 21:58:50 +0000 |
---|---|---|
committer | Kaz Kojima <kkojima@rr.iij4u.or.jp> | 2012-04-17 21:58:50 +0000 |
commit | 051deafb93866d0145be7a02b561ea1a39caa2f2 (patch) | |
tree | 2b89afaa722a31dd1b70959edb5338b75ff396a7 /bfd/elf32-sh.c | |
parent | 308a1847562142d68f6a174ca0eccae72490c651 (diff) | |
download | gdb-051deafb93866d0145be7a02b561ea1a39caa2f2.tar.gz |
* elf32-sh.c (allocate_dynrelocs): Don't allocate dynamic
relocations when LE conversion happens on the IE tls symbol.
Diffstat (limited to 'bfd/elf32-sh.c')
-rw-r--r-- | bfd/elf32-sh.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/elf32-sh.c b/bfd/elf32-sh.c index 9bc2dd5a794..87d4e4fcbc5 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) |