Similarly to the AArch64 patch, set DF_STATIC_TLS for consistency with
authorKyle McMartin <kyle@redhat.com>
Fri, 20 Jun 2014 10:14:09 +0000 (11:14 +0100)
committerNick Clifton <nickc@redhat.com>
Fri, 20 Jun 2014 10:14:09 +0000 (11:14 +0100)
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.

bfd/ChangeLog
bfd/elf32-arm.c

index c56b48d609c6322d39457b2f0efb34b53622e078..b7f235bed6d70d89276edb6198c394ed0e37c031 100644 (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
index ca64c7bf1ae27422336886efd5bbeb110a5db691..1c6965eb1175263f24ee300bdfb29d33b00b0566 100644 (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++;
This page took 0.03121 seconds and 4 git commands to generate.