看板 DFBSD_commit 關於我們 聯絡資訊
: :On Sun, Mar 27, 2005 at 07:33:20PM -0800, Matthew Dillon wrote: :> 1.5 +35 -23 src/libexec/rtld-elf/i386/reloc.c : :The check for libc already having allocated a TCB is unnecessary, :the program is pretty much hosed if this happens. : :Joerg There is some sort of init function in libc which... see /usr/src/lib/libc/gen/tls.c, _init_tls(), which appears to run before anything else, at least for static builds. I don't like the idea of not supporting the possibility that an initial TLS might already be set-up before the RTLD runs, so I went for a generic solution. An even larger issue is the fact that we seem to repeat the TLS and dynamic segment management code something like three times between libc and rtld. I'd prefer that code to exist just once, though I don't see an easy way to do it in just one place at the moment. -Matt Matthew Dillon <dillon@backplane.com>