diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-10-06 00:11:41 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-10-06 00:13:52 -0700 |
commit | 51537393bd939e79f6e9291629fb65a17e6f19da (patch) | |
tree | e6b819c200346bc2a01540226ee74d36fffa3b17 /bfd/elf32-i386.c | |
parent | e98fdf1ab07243fe467caadd0d033b44b8ca20c7 (diff) | |
download | gdb-51537393bd939e79f6e9291629fb65a17e6f19da.zip gdb-51537393bd939e79f6e9291629fb65a17e6f19da.tar.gz gdb-51537393bd939e79f6e9291629fb65a17e6f19da.tar.bz2 |
x86: Add TLS_TRANSITION_IE_TO_LE_P
Add TLS_TRANSITION_IE_TO_LE_P which returns TRUE if TLS IE->LE transition
is OK.
* elfxx-x86.h (TLS_TRANSITION_IE_TO_LE_P): New.
* elf32-i386.c (elf_i386_tls_transition): Use it.
* elf64-x86-64.c (elf_x86_64_tls_transition): Likewise.
Diffstat (limited to 'bfd/elf32-i386.c')
-rw-r--r-- | bfd/elf32-i386.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c index d4adaf4..c4af6b2 100644 --- a/bfd/elf32-i386.c +++ b/bfd/elf32-i386.c @@ -1105,10 +1105,7 @@ elf_i386_tls_transition (struct bfd_link_info *info, bfd *abfd, { unsigned int new_to_type = to_type; - if (bfd_link_executable (info) - && h != NULL - && h->dynindx == -1 - && (tls_type & GOT_TLS_IE)) + if (TLS_TRANSITION_IE_TO_LE_P (info, h, tls_type)) new_to_type = R_386_TLS_LE_32; if (to_type == R_386_TLS_GD |