* elf32-m68k.c (elf_m68k_relocate_section): Allow
authorAndreas Schwab <schwab@linux-m68k.org>
Sat, 31 Mar 2012 14:27:33 +0000 (14:27 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Sat, 31 Mar 2012 14:27:33 +0000 (14:27 +0000)
R_68K_TLS_LE{8,16,32} for PIE.

bfd/ChangeLog
bfd/elf32-m68k.c

index 8bd12f278f0736e41fd372a02032bb99d437871a..384235e442dd4d0b6eb0769bc87f93e6eb032881 100644 (file)
@@ -1,3 +1,8 @@
+2012-03-31  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * elf32-m68k.c (elf_m68k_relocate_section): Allow
+       R_68K_TLS_LE{8,16,32} for PIE.
+
 2012-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
 
        * elf64-s390.c: Fix several comments regarding PLT entry
index 26cec399bf0187f334038891990cc96114bf1791..91ae2df17364b256ee2b80d3ef6dc15ccb7252de 100644 (file)
@@ -3948,7 +3948,7 @@ elf_m68k_relocate_section (output_bfd, info, input_bfd, input_section,
        case R_68K_TLS_LE32:
        case R_68K_TLS_LE16:
        case R_68K_TLS_LE8:
-         if (info->shared)
+         if (info->shared && !info->pie)
            {
              (*_bfd_error_handler)
                (_("%B(%A+0x%lx): R_68K_TLS_LE32 relocation not permitted "