Hi, On Fri, Jan 02, 2009 at 09:14:42AM -0200, Paulo César Pereira de Andrade wrote: > I don't want to have it in any intrusive or hard to understand > way. But to allow easier handling by automated tools, the syntax > for symbols that should be available to modules is: > > extern _X_EXPORT <type-spec><optional-newline> <symbol-name> <ignored...>
I'm pretty troubled by this. If it's C, then it's C. If it's not C, then it's not C. Pseudo-C, OTOH ... > The real problem with "sdksyms.*" is that it is trying to resolve > a problem that should not exist in the first place. If the symbols > are not "referenced", the linker will not add "unreachable" symbols > to the Xorg binary. The problem is that the symbols "dropped" are > only reachable from loadable modules. > > The proper solution should be either have the Xorg binary actually > reference those symbols, or have them in separate modules, or possibly > have then in a shared library... Arguably, the proper solution is an actual (gasp!) linker script to manage our so-called API. Either way, I'm pretty sure that putting half of Xorg into a shared library just because we haven't figured out linking yet, is not the way forward. Cheers, Daniel
signature.asc
Description: Digital signature
_______________________________________________ xorg mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/xorg
