This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]