Re: Module versioning

Stephen Williams (steve@icarus.icarus.com)
Tue, 30 Dec 1997 12:12:21 -0800


martin@mira.isdn.cs.tu-berlin.de said:
> In Linux module versioning, 'version' numbers are automatically
> generated from the signature of the symbol. Simple C++ style mangling
> is not sufficient, because you also want to encode the structure
> layout of the structures the function processes.

... which is why I suggested using stabs information to mangle the symbols,
or otherwiseprovide a means of type-safe linkage. If the types of the
parameters are the same name and form, and function names are the same,
and return values are same type form, this would be pretty safe.

Note that this is much more picky then C++-style linkage.

Really, I think this would work, and if I had time I would prove my point.
(I may yet find the time.)

-- 
Steve Williams
steve@icarus.com
steve@picturel.com

"The woods are lovely, dark and deep. But I have promises to keep, And lines to code before I sleep, And lines to code before I sleep."