2011-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
authorRamana Radhakrishnan <ramana.r@gmail.com>
Wed, 22 Jun 2011 16:06:00 +0000 (16:06 +0000)
committerRamana Radhakrishnan <ramana.r@gmail.com>
Wed, 22 Jun 2011 16:06:00 +0000 (16:06 +0000)
       * elf32-arm.c (elf32_arm_final_link_relocate): Allow R_ARM_TLS_LE32
       for PIE.

bfd/ChangeLog
bfd/elf32-arm.c

index 48fe5041bcb54171611a8dd64fd8e815ca71c87f..5084b7d7a284706a53d618688555e93f3fbe7acb 100644 (file)
@@ -1,3 +1,8 @@
+2011-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
+
+       * elf32-arm.c (elf32_arm_final_link_relocate): Allow R_ARM_TLS_LE32
+       for PIE.
+
 2011-06-22  Alan Modra  <amodra@gmail.com>
 
        * elflink.c (_bfd_elf_merge_symbol): Allow type changes for
index b0f315b97f624b8551e8746510d81a348345ce21..257f7a5e6eeda14e634bdc89369218a0f70518a2 100644 (file)
@@ -9454,7 +9454,7 @@ elf32_arm_final_link_relocate (reloc_howto_type *           howto,
       }
 
     case R_ARM_TLS_LE32:
-      if (info->shared)
+      if (info->shared && !info->pie)
        {
          (*_bfd_error_handler)
            (_("%B(%A+0x%lx): R_ARM_TLS_LE32 relocation not permitted in shared object"),