aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-ia64.c
diff options
context:
space:
mode:
authorSteve Ellcey <sje@cup.hp.com>2006-02-06 21:55:39 +0000
committerSteve Ellcey <sje@cup.hp.com>2006-02-06 21:55:39 +0000
commit75eb734c5cf4c99438b48359bef717055af77e8c (patch)
tree5d4d34762248a9530326cda3ee9bd129f2c553d7 /bfd/elfxx-ia64.c
parent38fcd64c3aab38859abfe7bbef7ced8942bfa74d (diff)
downloadgdb-75eb734c5cf4c99438b48359bef717055af77e8c.zip
gdb-75eb734c5cf4c99438b48359bef717055af77e8c.tar.gz
gdb-75eb734c5cf4c99438b48359bef717055af77e8c.tar.bz2
* elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS
if SHF_TLS is set.
Diffstat (limited to 'bfd/elfxx-ia64.c')
-rw-r--r--bfd/elfxx-ia64.c5
1 files changed, 5 insertions, 0 deletions
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;
}