From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5376 invoked by alias); 24 May 2006 17:05:13 -0000 Received: (qmail 5349 invoked by uid 22791); 24 May 2006 17:05:08 -0000 X-Spam-Check-By: sourceware.org Received: from hiauly1.hia.nrc.ca (HELO hiauly1.hia.nrc.ca) (132.246.100.193) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 24 May 2006 17:04:59 +0000 Received: from hiauly1.hia.nrc.ca (hiauly1.hia.nrc.ca [127.0.0.1] (may be forged)) by hiauly1.hia.nrc.ca (8.13.6/8.13.6) with ESMTP id k4OH4sma027367; Wed, 24 May 2006 13:04:55 -0400 (EDT) Received: (from dave@localhost) by hiauly1.hia.nrc.ca (8.13.6/8.13.6/Submit) id k4OH4s2W027366; Wed, 24 May 2006 13:04:54 -0400 (EDT) Message-Id: <200605241704.k4OH4s2W027366@hiauly1.hia.nrc.ca> Subject: Re: [parisc-linux] Re: [PATCH] Add TLS support for hppa-linux. To: carlos@systemhalted.org (Carlos O'Donell) Date: Thu, 25 May 2006 02:34:00 -0000 From: "John David Anglin" Cc: dave.anglin@nrc.ca, binutils@sourceware.org, parisc-linux@lists.parisc-linux.org In-Reply-To: <119aab440605240804y5572dc47tba09bcaec0d5b71a@mail.gmail.com> from "Carlos O'Donell" at May 24, 2006 11:04:38 am X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2006-05/txt/msg00443.txt.bz2 > 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)