[Mesa-dev] [PATCH] mapi: Fix tls with shared/es-glapi on x86-64

Benjamin Franzke benjaminfranzke at googlemail.com
Wed Jun 8 07:07:51 PDT 2011


2011/6/7 Chia-I Wu <olvaffe at gmail.com>:
> How is that the case?  It seems the symbol is not used elsewhere.
>

Right, seems i tried solve the wrong side of the problem.

x86_64_entry_start is declared similar to a global static variable in
the asm code,
so it will be bound local.
But in entry_get_public its declared as extern, the compiler will generate code
to lookup a global object, not a local.
By declaring x86_64_entry_start as static the correct local address is
loaded here.

Patch attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mapi-Fix-tls-with-shared-es-glapi-on-x86-64.patch
Type: text/x-patch
Size: 1350 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20110608/3c58d8d9/attachment.bin>


More information about the mesa-dev mailing list