Alle 19:40, marted=EC 2 marzo 2004, Jeff Dike ha scritto:
> blaisorblade_spam@... said:
> > Eeehm - yes! Note however the comment about genksyms: what I say is my
> > idea, but possibly a wrong one.
> Yeah, this isn't right. The userspace symbols are from libc, and have no
> place under kernel/.
> They should be exported from os/ somehow
No problem: a file inside os-* can actually *not* be a USER_OBJS.
> , and a
> different OS might export totally different symbols.
Yes, that is true (I thought to it). However, the need to avoid code=20
duplication is still there.
So, avoid moving the symbols to ksyms.c, but change user_syms.c that way (i=
make it not be an USER_OBJ), so we can avoid duplicating code. That is=20
especially important because we cannot duplicate the __attribute_used__=20
macro, which is needed with newer Gcc, and which is defined differently for=
different compilers *in kernel headers*.
If you need the rebuilt patch, just let me know and I'll post it next week=
(I'm going to leave for a few days).
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729