Similarly to the AArch64 patch, set DF_STATIC_TLS for consistency with

other architectures when we emit IE relocs in a shared library.

	* elf32-arm.c (elf32_arm_check_relocs): Set DF_STATIC_TLS when
	emitting initial-exec relocs when not linking an executable.
This commit is contained in:
Kyle McMartin 2014-06-20 11:14:09 +01:00 committed by Nick Clifton
parent db988f621f
commit eea6dad2b3
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2014-06-20 Kyle McMartin <kyle@redhat.com>
* elf32-arm.c (elf32_arm_check_relocs): Set DF_STATIC_TLS when
emitting initial-exec relocs when not linking an executable.
2014-06-16 Will Newton <will.newton@linaro.org>
* elf32-arm.c (elf32_arm_allocate_plt_entry): Increment

View file

@ -12711,6 +12711,9 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info,
default: tls_type = GOT_NORMAL; break;
}
if (!info->executable && (tls_type & GOT_TLS_IE))
info->flags |= DF_STATIC_TLS;
if (h != NULL)
{
h->got.refcount++;