Re: cvs commit: src/sys/sys tls.h src/lib/libc/gen tls.c src/lib

看板DFBSD_commit作者時間21年前 (2005/03/29 02:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串13/14 (看更多)
: :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>
文章代碼(AID): #12I4sl00 (DFBSD_commit)
討論串 (同標題文章)
完整討論串 (本文為第 13 之 14 篇):
文章代碼(AID): #12I4sl00 (DFBSD_commit)