public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* ld.so needs __errno_location PLT entry?
@ 2002-09-29 15:41 Roland McGrath
  0 siblings, 0 replies; only message in thread
From: Roland McGrath @ 2002-09-29 15:41 UTC (permalink / raw)
  To: GNU libc hackers

Unless I am missing something, I think ld.so needs to have a PLT entry for
__errno_location.  This bites fatally on Hurd, where the implementations of
read et al must come from libc.so and so the real errno must be found by
ld.so's calls to see any values at all.  On Linux with PLT reduction it
never matters to communicate an errno value between libc and ld.so, so
always getting ld.so's private errno cell is fine most of the time.  But
there is only one private cell, so ld.so's uses of it are not thread-safe.
I am not positive off hand that every possible access to errno inside ld.so
happens with _dl_load_lock held.  If so, then it's ok.  But that is
certainly a subtlety that requires some comments somewhere.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-29 22:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-29 15:41 ld.so needs __errno_location PLT entry? Roland McGrath

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).