[PATCH] fix sdksyms for gcc3
Daniel Stone
daniel at fooishbar.org
Fri Jan 2 21:24:07 PST 2009
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg/attachments/20090103/f4299280/attachment.pgp>
More information about the xorg
mailing list