This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [parisc-linux] Re: [PATCH] Add TLS support for hppa-linux.
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: carlos at systemhalted dot org (Carlos O'Donell)
- Cc: dave dot anglin at nrc dot ca, binutils at sourceware dot org, parisc-linux at lists dot parisc-linux dot org
- Date: Wed, 24 May 2006 13:04:54 -0400 (EDT)
- Subject: Re: [parisc-linux] Re: [PATCH] Add TLS support for hppa-linux.
> It's never too late, which lines were too long?
Any lines over 79 characters:
+ enum {
+ GOT_UNKNOWN = 0, GOT_NORMAL = 1, GOT_TLS_GD = 2, GOT_TLS_LDM = 4, GOT_TLS_I
+#define hppa_elf_local_got_tls_type(abfd) \
+ ((char *)(elf_local_got_offsets (abfd) + (elf_tdata (abfd)->symtab_hdr.sh_inf
o * 2)))
+ if ((hh->tls_type & (GOT_TLS_GD|GOT_TLS_IE)) == (GOT_TLS_GD|GOT_TLS_IE
))
+ if ((*local_tls_type & (GOT_TLS_GD|GOT_TLS_IE)) == (GOT_TLS_GD|GOT
_TLS_IE))
+ if ((*local_tls_type & (GOT_TLS_GD|GOT_TLS_IE)) == (GOT_TLS_GD
|GOT_TLS_IE))
+ loc += htab->srelgot->reloc_count++ * sizeof (Elf32_External_Rel
a);
+ loc += htab->srelgot->reloc_count * sizeof (Elf32_External_R
ela);
+ outrel.r_info = ELF32_R_INFO (indx,R_PARISC_TLS_DTPMOD32
);
+ bfd_put_32 (output_bfd, 0, htab->sgot->contents + cur_of
f);
+ bfd_put_32 (output_bfd, relocation - dtpoff_base (info
),
+ bfd_put_32 (output_bfd, relocation - dtpoff_base (info
),
+ outrel.r_info = ELF32_R_INFO (indx, R_PARISC_TLS_DTP
OFF32);
+ outrel.r_info = ELF32_R_INFO (indx, R_PARISC_TLS_TPREL32
);
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)