From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7274 invoked by alias); 8 Mar 2004 18:31:57 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 7243 invoked from network); 8 Mar 2004 18:31:54 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 8 Mar 2004 18:31:54 -0000 Received: from drow by nevyn.them.org with local (Exim 4.30 #1 (Debian)) id 1B0PXd-0006QW-DT; Mon, 08 Mar 2004 13:31:53 -0500 Date: Mon, 08 Mar 2004 18:31:00 -0000 From: Daniel Jacobowitz To: "H. J. Lu" Cc: binutils@sources.redhat.com, GDB Subject: Re: What x86 TLS relocations can be in debug section? Message-ID: <20040308183153.GA24645@nevyn.them.org> Mail-Followup-To: "H. J. Lu" , binutils@sources.redhat.com, GDB References: <20040308182906.GA29662@lucon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040308182906.GA29662@lucon.org> User-Agent: Mutt/1.5.1i X-SW-Source: 2004-03/txt/msg00053.txt.bz2 On Mon, Mar 08, 2004 at 10:29:06AM -0800, H. J. Lu wrote: > Intel compiler may generate some x86 TLS relocations, R_386_TLS_LE, > R_386_TLS_GOTIE and R_386_TLS_IE, against debug section. The current > x86 linker will try optimize R_386_TLS_GOTIE and R_386_TLS_IE. But > the optimization won't work in debug section. My questions are > > 1. Are TLS relocations needed in debug section? > 2. If not, how does gdb handle TLS? You could just compile a procedure using TLS and look, you know. The debug info will tell you exactly what GCC does. Take a look at DW_OP_GNU_push_tls_address, which is used for this exact purpose. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer