[K42-discussion] Cause of cxa_atexit/dso_handle reference
Patrick G. Bridges
bridges at cs.unm.edu
Wed Aug 23 05:15:02 EST 2006
On Aug 22, 2006, at 12:22 PM, Donour Sizemore wrote:
> So which option would people like to persue; removing static global
> objects from k42 or adding our on definitions of cxa_atexit and
> dso_handle?
>
> The latter seems more reasonable to me. Am I correct and believing
> that
> the only issue taken with my previous patch is that their were two
> copies of the definition. I'm sure I could prepare a single version
> that
> is linked into to both kernel and userspace code.
I'd suggest making a simple implementation and putting it in lib/libc/
stdlib where the C version of atexit already is. Adding it to the
objects in libk.a should be sufficient putting it in the kernel when
global objects are used. Presumably there's a similar way to get it
available from there to user-space programs, but I'm just staring to
look at that part of the build system.
-Patrick
More information about the K42-discussion
mailing list