Re: [parisc-linux] Re: [PATCH] Add TLS support for hppa-linux.
"John David Anglin" <[email protected]>
| Newsgroups | gmane.comp.gnu.binutils,gmane.linux.ports.hppa |
|---|---|
| Message-ID | <[email protected]> |
> 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 [email protected]
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)