* What x86 TLS relocations can be in debug section?
@ 2004-03-08 18:29 H. J. Lu
2004-03-08 18:31 ` Daniel Jacobowitz
2004-03-08 20:32 ` Richard Henderson
0 siblings, 2 replies; 5+ messages in thread
From: H. J. Lu @ 2004-03-08 18:29 UTC (permalink / raw)
To: binutils, GDB
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?
H.J.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: What x86 TLS relocations can be in debug section?
2004-03-08 18:29 What x86 TLS relocations can be in debug section? H. J. Lu
@ 2004-03-08 18:31 ` Daniel Jacobowitz
2004-03-08 20:32 ` Richard Henderson
1 sibling, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2004-03-08 18:31 UTC (permalink / raw)
To: H. J. Lu; +Cc: binutils, GDB
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: What x86 TLS relocations can be in debug section?
2004-03-08 18:29 What x86 TLS relocations can be in debug section? H. J. Lu
2004-03-08 18:31 ` Daniel Jacobowitz
@ 2004-03-08 20:32 ` Richard Henderson
2004-03-09 16:39 ` H. J. Lu
1 sibling, 1 reply; 5+ messages in thread
From: Richard Henderson @ 2004-03-08 20:32 UTC (permalink / raw)
To: H. J. Lu; +Cc: binutils, GDB
On Mon, Mar 08, 2004 at 10:29:06AM -0800, H. J. Lu wrote:
> 1. Are TLS relocations needed in debug section?
Only the DTV relocations.
r~
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-03-09 18:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-08 18:29 What x86 TLS relocations can be in debug section? H. J. Lu
2004-03-08 18:31 ` Daniel Jacobowitz
2004-03-08 20:32 ` Richard Henderson
2004-03-09 16:39 ` H. J. Lu
2004-03-09 18:57 ` Richard Henderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox