From: Steve Ellcey Date: Mon, 6 Feb 2006 21:55:39 +0000 (+0000) Subject: * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS X-Git-Tag: gdb-csl-20060226-branchpoint~154 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=75eb734c5cf4c99438b48359bef717055af77e8c;p=external%2Fbinutils.git * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS if SHF_TLS is set. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 4dcd1e7..5820f98 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2006-02-06 Steve Ellcey + + * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS + if SHF_TLS is set. + 2006-02-05 Arnold Metselaar * coff-z80.c (r_imm24): New howto. diff --git a/bfd/elfxx-ia64.c b/bfd/elfxx-ia64.c index 5dfdaaa..81e683c 100644 --- a/bfd/elfxx-ia64.c +++ b/bfd/elfxx-ia64.c @@ -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; }