diff options
author | Kaz Kojima <kkojima@rr.iij4u.or.jp> | 2012-04-17 21:58:51 +0000 |
---|---|---|
committer | Kaz Kojima <kkojima@rr.iij4u.or.jp> | 2012-04-17 21:58:51 +0000 |
commit | 87458ed22270b99282f2180018c7d121695d7d9e (patch) | |
tree | 084ac8a4459fa8c66ca1bb0fc451b6b78712df63 /bfd | |
parent | 58d5e2c3ff4b447730a33cde385905bf5f4436c0 (diff) | |
download | gdb-87458ed22270b99282f2180018c7d121695d7d9e.zip gdb-87458ed22270b99282f2180018c7d121695d7d9e.tar.gz gdb-87458ed22270b99282f2180018c7d121695d7d9e.tar.bz2 |
* elf32-sh.c (allocate_dynrelocs): Don't allocate dynamic
relocations when LE conversion happens on the IE tls symbol.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf32-sh.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e9ac993..dacde6d 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2012-04-17 Kaz Kojima <kkojima@rr.iij4u.or.jp> + + * elf32-sh.c (allocate_dynrelocs): Don't allocate dynamic + relocations when LE conversion happens on the IE tls symbol. + 2012-04-17 Roland McGrath <mcgrathr@google.com> * elf64-x86-64.c (elf_x86_64_nacl_plt0_entry): Fix nop padding diff --git a/bfd/elf32-sh.c b/bfd/elf32-sh.c index 9bc2dd5..87d4e4f 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) |