* elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS
authorSteve Ellcey <sje@cup.hp.com>
Mon, 6 Feb 2006 21:55:39 +0000 (21:55 +0000)
committerSteve Ellcey <sje@cup.hp.com>
Mon, 6 Feb 2006 21:55:39 +0000 (21:55 +0000)
if SHF_TLS is set.

bfd/ChangeLog
bfd/elfxx-ia64.c

index 4dcd1e75071ba63645ebdf0d16e4d32167660ef2..5820f98e8fbad00fa5a044e2283de37a7a9fd570 100644 (file)
@@ -1,3 +1,8 @@
+2006-02-06  Steve Ellcey  <sje@cup.hp.com>
+
+       * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS
+       if SHF_TLS is set.
+
 2006-02-05  Arnold Metselaar  <arnold.metselaar@planet.nl>
 
        * coff-z80.c (r_imm24): New howto. 
index 5dfdaaa7406f48544c7ffc00140c9433642cbe1f..81e683c81fe879c4f0a7f12ee5bf5feda4c40058 100644 (file)
@@ -1524,6 +1524,11 @@ elfNN_ia64_fake_sections (abfd, hdr, sec)
   if (sec->flags & SEC_SMALL_DATA)
     hdr->sh_flags |= SHF_IA_64_SHORT;
 
+  /* Some HP linkers look for the SHF_IA_64_HP_TLS flag instead of SHF_TLS. */
+
+  if (elfNN_ia64_hpux_vec (abfd->xvec) && (sec->flags & SHF_TLS))
+    hdr->sh_flags |= SHF_IA_64_HP_TLS;
+
   return TRUE;
 }
 
This page took 0.029028 seconds and 4 git commands to generate.