This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: What x86 TLS relocations can be in debug section?
- From: Daniel Jacobowitz <drow at false dot org>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: binutils at sources dot redhat dot com, GDB <gdb at sources dot redhat dot com>
- Date: Mon, 8 Mar 2004 13:31:53 -0500
- Subject: Re: What x86 TLS relocations can be in debug section?
- References: <20040308182906.GA29662@lucon.org>
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