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:
parent
db988f621f
commit
eea6dad2b3
@ -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
|
||||
|
@ -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++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user