public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* RFC: Disallow undocumented IA32 TLS GD access
@ 2007-08-23 15:03 H.J. Lu
  2007-08-23 16:10 ` Ulrich Drepper
  0 siblings, 1 reply; 2+ messages in thread
From: H.J. Lu @ 2007-08-23 15:03 UTC (permalink / raw)
  To: binutils; +Cc: gcc, GNU C Library

IA32 TLS GD access model specifies

leal    foo@TLSGD(,%ebx,1), %eax
call    ___tls_get_addr

But the current linker also accepts

leal    foo@TLSGD(%ebx), %eax
call    ___tls_get_addr

However, GD->IE transition needs one more byte to change it to

movl %gs:0, %eax; subl $foo@gottpoff(%reg), %eax

I'd like to change the linker to accept

leal    foo@TLSGD(%ebx), %eax
call    ___tls_get_addr

only if there is a nop after it. Is there any objection?


H.J.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: RFC: Disallow undocumented IA32 TLS GD access
  2007-08-23 15:03 RFC: Disallow undocumented IA32 TLS GD access H.J. Lu
@ 2007-08-23 16:10 ` Ulrich Drepper
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 2007-08-23 16:10 UTC (permalink / raw)
  To: H.J. Lu; +Cc: binutils, gcc, GNU C Library

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

H.J. Lu wrote:
> Is there any objection?

No, this is correct and necessary.

- --
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFGzaGk2ijCOnn/RHQRAlIzAKCQHMUkXlxkPN0VijvrhZSyN1VqygCfRMQU
zNdi1GNzOWuFCoYlCNCsl0c=
=U1sJ
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-23 15:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-23 15:03 RFC: Disallow undocumented IA32 TLS GD access H.J. Lu
2007-08-23 16:10 ` Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).